.htaccess 파일에 문제가 있습니다. 내 인덱스 페이지를 웹 서버에 호스팅했습니다. 나는 여기에.htaccess 파일에 문제가 있습니다.
<html>
<head>
<title>Second mod_rewrite example</title>
</head>
<body>
<p>
welcome index page. Index page is loaded
<a href="http://rang.comli.com/servicecnt.php?service_id=5">Done with php my admin</a>
</p>
</body>
</html>
http://rang.comli.com/servicecnt/service_id/5 내 htaccess로 파일입니다 그것은해야 난 아직도 내 URL이 friendly.It가 http://rang.comli.com/servicecnt을 보여주는되지 htaccess로 파일에 코드를 추가 htaccess로의 file.After에서 뭘 잘못했는지 모르겠어요 :
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase/
## hide .php extension
# To externally redirect /public_html/index.php to /dir/index
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule^%1 [R,L,NC]
## To internally redirect /public_html/index to /dir/index.php
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule^%{REQUEST_URI}.php [L]
RewriteEngine On
RewriteCond %{QUERY_STRING} ^service_id=([0-9]*)$
RewriteRule ^servicecnt\.php$ /servicecnt.php/%1? [R=302,L]
중 하나가 나를 도울 수 htaccess로는 –
어느 한 날 hepl 수 성가신? –
인내심은 좋은 것입니다. 그것을 습득하는 방법을 배우십시오. – Sumurai8