Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Zeus Web Server - Equiv for 301 re-direct
Old 05-13-2006, 05:51 PM Zeus Web Server - Equiv for 301 re-direct
Junior Talker

Posts: 4
Trades: 0
It seems support for Zeus Web Server is almost non-existant ...

I am simply looking for simple code required to make a permanent re-direct (equiv to 301 re-direct) from a non-www to www.destinationmalta.com. Need to know what file to create, where to put it and what code to insert if possible.

Thanks a lot,
Mark
malta is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-13-2006, 06:22 PM Re: Zeus Web Server - Equiv for 301 re-direct
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Zeus supports using htaccess for redirects so what works apache should work for zeus
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-14-2006, 06:00 AM Re: Zeus Web Server - Equiv for 301 re-direct
Junior Talker

Posts: 4
Trades: 0
I have been in contact with my hosting company in UK. They do not provide any form of scripting to clients, which in my opinion is stupid. Only thing I managed to get is that a conversion is needed:

From ...

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.yoursite.com/$1 [L,R=301]

on Zeus, will be ...

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

I never done such scripting and do not even know where to start. Hope someone can guide me or put me in the right direction.

Thanks,
Mark
malta is offline
Reply With Quote
View Public Profile
 
Old 05-14-2006, 06:03 AM Re: Zeus Web Server - Equiv for 301 re-direct
Junior Talker

Posts: 4
Trades: 0
Another guy told me to create file including the following ...

<IfModule mod_rewrite.c>
RewriteEngine on

# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /

#redirects non-www to www
RewriteCond %{HTTP_HOST} ^sitename.com [NC]
RewriteRule ^(.*)$ http://www.sitename.com/$1 [L,R=301]

</IfModule>

Hey, nothing really matches. Confused!
malta is offline
Reply With Quote
View Public Profile
 
Old 05-15-2006, 06:35 AM Re: Zeus Web Server - Equiv for 301 re-direct
Junior Talker

Posts: 4
Trades: 0
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:
- 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.
malta is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Zeus Web Server - Equiv for 301 re-direct
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21817 seconds with 12 queries