1
내 URL을 다시 작성할 수 없습니다. 나는 잘 작동하는 뿌리가있다. 하지만 다른 경로를 추가하려고하는데 작동하지 않습니다.htaccess의 여러 RewriteRules
내가 원하는 것은 :
mydoma.in/
어떤 경로
그리고
mydoma.in/comments
을을 index.php있는 페이지와-comments.php
하고 경로 지금까지의 코드는
입니다.# http://httpd.apache.org/docs/current/mod/core.html#errordocument
#ErrorDocument 404 /404.php
ErrorDocument 404 "Message"
RewriteEngine on
RewriteRule ^comment/(.*)$ page-with-comments.php/$1 [L]
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /path/needed/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1 [NC,L]
</IfModule>
두 경로 모두 매개 변수를 사용합니다.
그래서 이제 문제는 무엇인가? – anubhava
죄송합니다. 업데이트 된 콘텐츠입니다. 두 번째 경로를 추가해도 작동하지 않습니다. – cbass
귀하의 링크에서 댓글 ** s **을 (를) 사용하고 재 작성 규칙에서 주석을 달았습니다 (복수/단수). 이것은 단지 오타입니까? – secelite