问题
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