[HCoop-Help] Domtool redirect: with www to without www keeping file path

Michal michalcharemza at gmail.com
Thu Apr 9 11:23:21 EDT 2009


I'm trying to permanently redirect all
http://www.mydomain.com/something/ urls to
http://mydomain.com/something/ (so the file path is kept)

I've tried the following in my domtool file for my domain:

  web "www" with
    rewriteRule "^(.*)$" "http://mydomain.com$1" [redirectWith permanent]
  end;

(I found a similar rule at
http://wiki.hcoop.net/DomTool/Examples/Full#spinlocksolutions.com, but
with 'secure' instead of 'www') However doing this results in
http://mydomain.com/ showing the hcoop.net home page (so I have now
removed the above code from the domtool file)

Any suggestions?



More information about the HCoop-Help mailing list