How to Simulate & Test URL rewrite rule in Apache

2019-03-17 18:08发布

问题:

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.