Anyone good with 301 redirects?

Community Forums Forums General Discussion Anyone good with 301 redirects?

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Ordog 1 year, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #41618

    Ordog
    Participant
    Post count: 9

    I’ve moved my site to a new domain and need to redirect all URL’s to it.

    For example if you typed in http://www.olddomain.co.uk/contact – it would redirect you to http://www.newdomain.co.uk/contact

    I would like it to do this for EVERY page EXCLUDING the index in the root of the domain.

    I’ve tried the following buit it wont work:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^olddomain.co.uk$1 [OR]
    RewriteCond %{HTTP_HOST} ^www.olddomain.co.uk$
    RewriteCond %{REQUEST_URI} !^index\.php$
    RewriteRule (.*)$ http://www.newdomain.co.uk/$1 [R=301,L]

    Can anyone help please?

    #41619

    CynthiaC
    Participant
    Post count: 20

    If you are moving your site I would suggest you follow the Google’s guidelines

    http://googlewebmastercentral.blogspot.ca/2008/04/best-practices-when-moving-your-site.html

     

     

    #41621

    Ordog
    Participant
    Post count: 9

    Yes I’ve done all that but now I need to setup the 301′s which is what I need help with.

    #41627

    CynthiaC
    Participant
    Post count: 20

     

    RewriteEngine ON

    RewriteRule ^.*$ http://www.newwebsite.com/ [R=301,L]

     

     

    #41628

    Ordog
    Participant
    Post count: 9

    Are you actually reading what I’ve asked for or are you just churning out generic replies???

    • This reply was modified 1 year, 2 months ago by  Ordog.
    • This reply was modified 1 year, 2 months ago by  Ordog.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.