Support » Plugins » redirect inbound links? Plugin?

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    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]
    </IfModule>

    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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirect inbound links? Plugin?’ is closed to new replies.