Forum Moderators: open
I've been doing some research on redirects and which seem to be the most search engine friendly. I'm steering clear of meta refresh and even js redirects don't always get the thumbs up on these forums. So our developer said to use "response.redirect=the URL" for a server side redirect, as it is an asp site. Does anyone know whether this is the best solution for search engines?
Basically we need to use a redirect as we are changing our website's url, not recommended I know but out of our hands. Just want to hang on to as much se traffic as possible. Hope I'm posting in the right forum, and thanks for any help.
ck
server.transfer instead
?but where are you redirecting from
i don't understand if you are changing the url how will be able to redirect from the old one.
Hope its ok, I wasn't getting a reply here so posted in the server side scripting forum here:
[webmasterworld.com...]
Got a response from Xoc which was just what I needed, basically to give the browser a 301 "Moved Permanently" error, as opposed to 302. Hopefully this redirect will cause minimum search engine damage, as it is at the server level.
all the best
must have been posting at around the same time so I didn't see your question...
"...but where are you redirecting from i don't understand if you are changing the url how will be able to redirect from the old one..."
The old site will stay on our server, so we are thinking of adding the redirect to a header include file that will cover the whole site. Then if anyone clicks on a link from a search engine or bookmark to a page within the site, they will be redirected to our new url. To be honest, I'm still trying to figure this one out so if you've any more info on what that server.transfer. does...?
The code provided by Xoc seems to work fine though.
Any thoughts?