redirect inbound links? Plugin? (3 posts)

  1. DarrenShan
    Posted 3 years ago #

    I've just had to move my site from one domain to another (a .co.uk to a .com)

    My previous .co.uk website was very popular and has loads of inbound links but now it just redirects to the .com website (problem with the original hosting company)

    I can see from my stats that I have loads of inbound links to my site from the url of my original site (i.e. xxxx.co.uk/folder/page.html) but these inbound links will just get delivered to my main .com website (with me so far?)

    Does anyone know of a way (Plugin maybe?) that will look at the inbound link ((i.e. xxxx.co.uk/folder/page.html) and redirect the request to it's new home on the new webisite ((i.e. xxxx.com/?p=1874)

    so I could setup a table on bound links to match internal links?

    /folder/page.html = /?p=1098
    /folder/page2.html = /?p=1123
    /folder/another/default.html = /?p=10
    /page2.html = /?p=98765

  2. Do you have that list of redirects? There are plugins that will do that for you but I find that some of them add real overhead to your installation.

    If you have that list then if you have mod_rewrite enabled for your WordPress directory you can put lines like these into the top of your .htaccess file.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule folder/page.html http://your-new-URL.com/?p=1098 [R=301,L]
    RewriteRule folder/page2.html http://your-new-URL.com/?p=1123 [R=301,L]
    RewriteRule folder/another/default.html http://your-new-URL.com/?p=10 [R=301,L]

    Repeat that for all of your URLs. It's tedious but you would only need to do that once. That should work fine without any WordPress overhead.

  3. DarrenShan
    Posted 3 years ago #

    Jan, thanks for the tip. Yes I do have a list of redirects so I'll give the .htaccess file tip a go.

Topic Closed

This topic has been closed to new replies.

About this Topic