Hi,
Not sure whether this is the best forum. If not, please point me in the right direction.
I've completely redesigned a website so all the webopage refs are different. If I google search, there may be references to webpages that are now no longer on the site.
If I click on one, it doesn't take me to my website; rather it goes to the site of a webparking company, sedo.
Is there are a way I can get references to any old links to go to a nominated page on my current website.
TIA
Rob
If I read your post correctly, your domain has not changed, some of the
pages have been removed. So example.com/oldpage.html causes a not found
error, which it sounds like your hosting company handles by sending the
request to the webparking company page.
If this is true there are a couple things you can do, but they will take
some research. What I'm taking about here is Apache specific, but most
other servers I've worked with have similar mechanisms.
The first example will work on any server. Assuming
example.com/oldpage.html has been removed, but example.com/newpage.html
is the desired new destination. Simply create a replacement for
oldpage.html that tells the user to correct their bookmark and provide a
link to newpage.html. You can also add a meta refresh tag to move most
visitors along automatically.
You can also create custom "404 Not Found" handling that directs the
visitors to an explanation page that you have created. This page can
list links or whatever you want. You could also just have all 404's go
to the home page, but I don't recommend that.
Look up documentation on htaccess files, redirect, redirectmatch,
rewrite, and Apache directives to get an idea of what is possible. Most
servers allow some server directives to be placed in .htaccess files,
for example this line in an .htaccess file:
RedirectMatch permanent ^(.*)\.htm(l?)$ $1.php
Will automatically correct requests for all pages with .htm or .html
suffixes to be redirected to pages with the same name , but with a .php
suffix.
Read and heed all warnings and cautions, because you can adversely
affect the site with careless directives.
Happy hunting.