In RewriteRule if pattern and substitution begin with the same string, the RewriteRule doesn't work. Why?

后端 未结 1 1084
遇见更好的自我
遇见更好的自我 2021-01-24 10:53

In this post: My previous post i was asking help for a strange issue: a correct regexp was not working in a RewriteRule. After hours of work i found how to fix the error and i f

相关标签:
1条回答
  • 2021-01-24 11:31

    Actually real problem is the MultiViews option. Multiviews allow substitutions of file extensions, so you can call an URL like http://www.example.com/page.php using http://www.example.com/page.

    Use this line on top of your .htaccess to disable it:

    Options -MultiViews
    
    0 讨论(0)
提交回复
热议问题