It would help if you were more specific.
Perl 6 - links to (nearly) everything that is Perl 6.
| [reply] |
Subdomains are located under
/home/user/sub1.dom.com
/home/user/sub2.dom.com
/home/user/sub3.dom.com
and so on.
With actual rules http://www.subX.dom.com is redirected to http://subX.dom.com, but I want
http://www.subX.dom.com to http://www.subX.dom.com and
http://subX.dom.com to http://www.subX.dom.com
In my first example, RewriteRule ^(.*) http://%1$1 [R,L] working, but RewriteRule ^(.*) http://www.%1$1 [R,L] no longer.
| [reply] [d/l] [select] |
With actual rules
http://www.subX.dom.com is redirected to http://subX.dom.com,
With the rule I proposed? Somehow I have a very hard time believing that, since my rule never shortens an URL.
Are you sure you actually tested it? And that you didn't use a browser to test it, but a tool like wget?
(Browsers cache permanent redirects, so they are not very useful for debugging them).
Perl 6 - links to (nearly) everything that is Perl 6.
| [reply] |