Page 1 of 1

How to do a mod rewrite?

Posted: Wed Aug 15, 2007 3:08 am
by zebu
Considering I am a newbie in this matter, I am looking for simple explanation of what file to create, where to upload it and what to include for a simple permanent redirect from my non-www to my main www website.

Will really appreciate if someone who knows how to use Zeus can guide me.

I have made many searches and been through many other forums too. Even went on zeus.com and through their help section. Still have no idea where to start from. Zeus support is really not up to standard.

The only thing my hosting company can tell me is the following (no other help is available apparently)
................................................

While we do support .htaccess files, much of the mod_rewrite functionality is not available.

However, you can use Zeus rewrite rules which work in a very similar way. For example, a mod_rewrite rule of:

RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule ^[^/]*\.html$ index.php

Would convert to:

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

This should be placed in a file named rewrite.script in your web directory.

...............................................

Questions based on such reply:
- Shall I create a .htaccess or rewrite.script?

Too many ^,\,/,] for a newbie to know what to replace! Let's say I want anything non-www such as:

- destination-malta.com
- destination-malta.com/index.html

What do you people think the code should look like?

Sorry for taking your time, but maybe I can find someone who can help me here.

Posted: Wed Aug 15, 2007 3:43 am
by jussij
Zeus support is really not up to standard.

I do hope you realise this is the Zeus for Windows forum and not the Zeus web server forum :!:

Cheers Jussi

Posted: Wed Aug 22, 2007 5:20 pm
by amix
lol.