Tips for debugging .htaccess rewrite rules

后端 未结 16 3144
萌比男神i
萌比男神i 2020-11-21 05:17

Many posters have problems debugging their RewriteRule and RewriteCond statements within their .htaccess files. Most of these are using a shar

16条回答
  •  北恋
    北恋 (楼主)
    2020-11-21 05:42

    Don't forget that in .htaccess files it is a relative URL that is matched.

    In a .htaccess file the following RewriteRule will never match:

    RewriteRule ^/(.*)     /something/$s
    

提交回复
热议问题