Jump to content
ben03

.htaccess redirect

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...