Redirect Help please...specific page redirects

10 replies
Hi,

I am currently working on a new site.... "localseoireland.ie" and I want to redirect all traffic (and link juice) from the old site "localonlinemarketingsolutions.com". I'm able to do a complete site redirect using the .htaccess file but I need to do specific redirects for some of the inner pages that I have built backlinks to.

Both sites are wordpress, the url structure and content is completely different.

Can anyone help...I'm showing my ignorance here but I've wasted too much time on this already and I just have to bite the bullet and ask for help.

Cheers
#.htaccess #301 #page #pleasespecific #redirect #redirects
  • Profile picture of the author ImAdmirer
    You can use the redirect command for this.

    Here is the syntax which you can try putting in .htaccess file. You must use the full URL:
    Code:
    redirect oldURL newURL
    {{ DiscussionBoard.errors[5642563].message }}
    • Profile picture of the author Brandon Tanner
      If you want to preserve link juice, make sure you use a 301 redirect...

      Code:
      redirect 301 oldURL newURL
      Signature

      {{ DiscussionBoard.errors[5642722].message }}
      • Profile picture of the author seanpearse
        it's that simple? so I just repeat that code for each url i want to redirect all in the main .htaccess file?
        Signature

        What the world needs is more geniuses with humility, there are so few of us left!

        Local SEO Ireland

        {{ DiscussionBoard.errors[5642986].message }}
        • Profile picture of the author Brandon Tanner
          Originally Posted by seanpearse View Post

          it's that simple? so I just repeat that code for each url i want to redirect all in the main .htaccess file?
          Yep!

          For example...

          Code:
          redirect 301 http://www.oldsite.com/pageA.html http://www.newsite.com/pageA.html
          redirect 301 http://www.oldsite.com/pageB.html http://www.newsite.com/pageB.html
          etc etc.
          Signature

          {{ DiscussionBoard.errors[5643060].message }}
  • Profile picture of the author seanpearse
    i can't believe I've been banging my head off a wall all morning and it's that simple. always guilty of over-thinking things when there's no need!

    thanks mate much appreciated.
    Signature

    What the world needs is more geniuses with humility, there are so few of us left!

    Local SEO Ireland

    {{ DiscussionBoard.errors[5643075].message }}
  • Profile picture of the author ImAdmirer
    i can't believe I've been banging my head off a wall all morning and it's that simple.
    Just wanted to share this simple tip (of course everyone knows this) so that next time you do not waste that much time

    When in trouble, Google is our friend! A simple search like this is enough:
    Code:
    .htaccess redirect url
    
    or
    
    redirect urls using .htaccess
    {{ DiscussionBoard.errors[5643295].message }}
    • Profile picture of the author seanpearse
      Originally Posted by ImAdmirer View Post

      Just wanted to share this simple tip (of course everyone knows this) so that next time you do not waste that much time

      When in trouble, Google is our friend! A simple search like this is enough:
      Code:
      .htaccess redirect url
      
      or
      
      redirect urls using .htaccess
      yeah nice one mate never thought of that...............:rolleyes:
      Signature

      What the world needs is more geniuses with humility, there are so few of us left!

      Local SEO Ireland

      {{ DiscussionBoard.errors[5649976].message }}
  • Profile picture of the author bbleo
    here is code for .htaccess:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.com
    RewriteRule (.*) exampleredirect.com/$1 [R=301,L]
    {{ DiscussionBoard.errors[5661447].message }}
  • Profile picture of the author seanpearse
    ok so i've finally had a bit of progress with this bloody redirect malarkey.... i've been able to redirect some specific inner pages on my old site but the redirect for the main home page is still not working. here's the code from my .htaccess file....

    redirect 301 LOCAL ONLINE MARKETING - for Small to Medium Business Owners Local SEO Ireland
    redirect 301 /services/search-engine-optimisation SEO Ireland « Local SEO Ireland
    redirect 301 /services/local-search-marketing-2 Google Places « Local SEO Ireland
    redirect 301 /services/website Website Design « Local SEO Ireland
    redirect 301 /blog/what-is-seo-in-plain-english Local SEO Ireland
    redirect 301 /blog/what-is-seo-in-plain-english Local SEO Ireland

    All the redirects are working apart from the highlighted one. can someone please tell me what i'm doing wrong. i know its probably something really stupid but any help is much appreciated.

    cheers.
    Signature

    What the world needs is more geniuses with humility, there are so few of us left!

    Local SEO Ireland

    {{ DiscussionBoard.errors[5673218].message }}
  • Profile picture of the author seanpearse
    ok so i've finally had a bit of progress with this bloody redirect malarkey.... i've been able to redirect some specific inner pages on my old site but the redirect for the main home page is still not working. here's the code from my .htaccess file....

    redirect 301 http://www .localonlinemarketingsolutions.com/ http://www .localseoireland.ie
    redirect 301 /services/search-engine-optimisation http://www .localseoireland.ie/services/seo-ireland
    redirect 301 /services/local-search-marketing-2 http://www .localseoireland.ie/services/google-places
    redirect 301 /services/website http://www .localseoireland.ie/services/web-design-donegal
    redirect 301 /blog/what-is-seo-in-plain-english http://www .localseoireland.ie/
    redirect 301 /blog/what-is-seo-in-plain-english http://www .localseoireland.ie/

    All the redirects are working apart from the highlighted one. can someone please tell me what i'm doing wrong. i know its probably something really stupid but any help is much appreciated.

    cheers.
    Signature

    What the world needs is more geniuses with humility, there are so few of us left!

    Local SEO Ireland

    {{ DiscussionBoard.errors[5673264].message }}

Trending Topics