Forum Moderators: phranque
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]
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]