开发者

Apache mod rewrite rules to Zeus rewrite rules

This morning I wanted to move my development website online (in a protected folder), but I figured out that our host (on a shared server) does not use apache mod_rewrite but Zeus rules. I've never heard about that before but it seems that apache rules could be automatically converted via a command line, but as you can guess I have no such access on the server.

So, do you know any online coverter from Apache rules to Zeus 开发者_如何学运维ones? (I tried google but found nothing).

Or could someone translate these simple rules with his server:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

It should normaly be something like:

match URL into $ with ^[^\/]*\.html$
if matched then
   set URL = index.php
endif

But it just doesn't do anything, just the annoying 404 error page.

Cheers,

Nicolas.


I finally fixed the problem.
First I fixed my rules issues with this ressource, but that wasn't working at all, so I decided to put the script.rewrite file in the WEBROOT folder of my website... and then it worked!
I didn't put it in the root at first because the website is located in a subfolder, but it seems that the script.rewrite file isn't detected in this subfolder...

Hope it could help some people around,
Nicolas.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜