사례 1과 사례 2가 함께 작동하지 않습니다. .htaccess 파일에서 사례 2를 삭제하면 사례 1이 작동합니다. 케이스 1 전에 케이스 2를 작성하면 케이스 2가 작동하지 않고 케이스 1이 작동합니다.다시 쓰기 규칙 충돌 .htaccess
사례 1 :
RewriteRule /(.*)\.html storycategory.php?story=$1
예 :
http://localhost/romoko1/story/bedroom.html
케이스 2 :
RewriteRule /(.*)\.html tag.php?tag=$1
예 :
http://localhost/romoko1/tag/home-interior.html
'story /(.*) .html storycategory.php? story = $ 1'과'tag /(.*) .html tag.php? tag = $ 1'을 사용해보세요! –
잘 작동하지 않습니다. –
오키! 내 새로운 대답을 확인해주세요! –