htaccess redirection to subdomain
-
Hi all. I have a little problem out there, and besides I’ve searched I haven’t found a proper solution.
Recently I have moved my blog from the TLD to a subdomain, blog, but left in the same place (the TLD) the other directories containing random files. I’ve tried to do Apache redirections not to leave broken links over the net, but wasn’t successful. Basically, my idea is to redirect all URL with a /2007 or /2008 after the .com to the same URL, but in the subdomain.
If I have this in my .htaccess (in TLD) it will end in a loop:
RedirectMatch 301 ^/2007(.*)$ http://blog.domain.com/2007$1 RedirectMatch 301 ^/2008(.*)$ http://blog.domain.com/2008$1Any ideas?
Thanks in advance.
The topic ‘htaccess redirection to subdomain’ is closed to new replies.