ben03

.htaccess redirect

3 posts in this topic

Hi there,

 

Just about to do some redirects and wanted to make sure I was doing it correctly...

 

the old hosting domain old-domain.com, is going to be forwarding to the new hosting domain, new-domain.com. Would I write the rule as follows:

Redirect 301 /page-name/ http://www.newdomain.com/page-name

or would I have to include the old domain in front of the page name as well?

Redirect 301 http://www.old-domain.com/page-name/ http://www.new-domain.com/page-name

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now