Forum Moderators: phranque
Hope someone can help me out.
Thanks a lot,
Mark
I 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.
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.
Thanks a lot
................................................
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:
- destinationmalta.com
- destinationmalta.com/index.html
to be permanently re-directed to:
- www.destinationmalta.com
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.
In addition, you are asking about server configuration code that may cause your server to crash -- or worse, to fail intermittently in very subtle ways, if incorrectly written.
Any attempt to extrapolate from Apache to Zeus would be pure speculation. And since you are asking about code that can cause your server to mis-operate if it's coded incorrectly, the members here are understandably reluctant to 'guess' if it might take your server down and cause your site to become inaccessible.
I'd suggest you study the short regular-expressions tutorial cited in our forum charter [webmasterworld.com], since regular expressions form the basis for both Apache mod_rewrite and whatever Zeus calls their rewriting facility, as well as being used in PERL, PHP, and many other languages and operating system utilities such as grep on Unix.
You might want to ask your hosting support personnel for the URL of the documentation for the Zeus rewriting facility. Another thing to consider is whether you might be better off with a more widely-used server, such as Apache or Microsoft IIS.
Jim