Working for a web development company for a short term contract job, Zeus is the bane of my life now:
add www
RULE_0_START:match IN:Host into $ with ^domain.com.au$if matched thenmatch URL into $ with ^/(.*)$ set OUT:Location = http://www.domain.com.au/$1 set OUT:Content-Type = text/html set RESPONSE = 301 set BODY = Movedgoto ENDendifRULE_0_END:
remove www
RULE_0_START:match IN:Host into $ with ^www.domain.com.au$if matched thenmatch URL into $ with ^/(.*)$ set OUT:Location = http://domain.com.au/$1 set OUT:Content-Type = text/html set RESPONSE = 301 set BODY = Movedgoto ENDendifRULE_0_END:
redirect domain 301
match URL into $ with (.*) if matched then set Response = 301 set OUT:Location = http://www.secureyourdata.com.au$1 set OUT:Content-Type = text/html set Body = Go <a href=”http://www.secureyourdata.com.au$1″>here</a> instead. endif
I need to rewrite URLs for SEO for a client, they better be able to change to an apache server, or I’ll move servers…
Ahh.. they changed servers…. why does Zeus exist? I spent about 3 or 4 hours trying to get rewrites to work…