Domain change; how to set up htaccess redirect for files?

Core

all ball, no chain
Moderator
Joined
Feb 13, 2009
Messages
1,175
Reaction score
272
I am not sure whether this belongs in Software or in some other forum, but I'm sure a mod will move it where it belongs if I got it wrong...

I am moving a blog from domain A to domain B. I would like to modify the .htaccess so that if someone goes to olddomain/blog/post8.php, they'll be redirected to newdomain/blog/post8.php, without me having to set this up for each post separately. There should be a way to do it with htaccess.

I've already set up a wildcard redirection through cPanel for the domain, but that just takes any address under the old domain into the root of the new one...

Thanks for any possible help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top