I’ve moved my blog to its own domain and now need to redirect all the visitors to the new domain via an .htaccess file.
has moved to
I understand that I can put a redirect code in the .htaccess file in this location: http://www.OldDomain.com/blog/ so that all visitors get redirected to the front page of the new domain, but it would be most ideal if the visitors could be redirected to the particular page they are trying to get to instead.
The reason this is important is that I have a lot of pages that are heavily linked to from many other sites. I am concerned about these links now being broken having moved the blog to it’s own domain.
So is it possible to do this somehow:
gets redirected to
Is this possible??
If I have to write a line of code for each page, then I would for the most visited 10 or so but obviously can’t do that for all pages. So if I had to, could I redirect certain pages with a line of code for each of the most popular ten or so then have all other pages redirect to the front page of the new domain?
Or is there a smarter way of redirecting visitors to the exact page they wanted to visit on the new domain?
- The topic ‘htaccess redirect all pages AND specific pages’ is closed to new replies.