How to Simulate & Test URL rewrite rule in Apache 2, when on sharehosting RewriteLog is disabled/unallowed in .Htaccess?

我们两清 提交于 2020-01-01 01:17:13

问题


How to Simulate & Check a URL rewrite rule in Apache 2, when on sharehosting RewriteLog is disabled and or NOT allowed to be set in .Htaccess? In other words, are there any tools/simulators to test an url rewrite independantly of hosting, to check see for possibel Rewrite loops etc?

Thanks!


回答1:


I enjoy using http://htaccess.madewithlove.be

However, things like

RewriteCond %{REQUEST_FILENAME} !-f 

won't work, yet.




回答2:


I use Mod Rewrite Generator to generate and test my RewriteRule.
It takes care of the negations as well.
It also lets you modify the URL as per your needs.



来源:https://stackoverflow.com/questions/5508681/how-to-simulate-test-url-rewrite-rule-in-apache-2-when-on-sharehosting-rewrit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!