Forum Moderators: phranque

Message Too Old, No Replies

Zeus Web Server - 301 Redirects

I need to redirect non-www to www to solve cgi-script issue

         

GrantG

6:20 pm on Mar 9, 2008 (gmt 0)



Hello.

I am hoping someone here can solve my problem.

I am hosting with (a hosting company) who use Zeus on their Linux servers. Our e-commerce software, Actinic, seems to only work when cgi-script requests are sent from www.domain.com, not [domain.com,...] therefore I need to write a script to redirect non-www to www in Zeus, bearing in mind that Apache's '.htaccess' rules do not work on Zeus servers.

Can anyone help me out?

Thank you

[edited by: phranque at 7:14 am (utc) on Mar. 10, 2008]
[edit reason] Edited hosting specifics. [/edit]

Marcia

6:42 pm on Mar 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's an article on it by Zeus tech support [knowledgehub.zeus.com].

GrantG

7:02 pm on Mar 9, 2008 (gmt 0)



Hi Marcia.

Thank you for the link. However, I have used this code by replacing all instances of 'domain-name.com' with my domain name 'example.co.uk' but get the following error when 'validating' it in the control panel:

SERIOUS:RequestRewrite:Unknown or invalid command syntax on line 2.

Any idea why? This error points to the '$host = http.getHeader( "Host" );' line.

Thank you

[edited by: phranque at 7:14 am (utc) on Mar. 10, 2008]
[edit reason] No urls, please. See TOS [webmasterworld.com] [/edit]