Hi - I'm about to redesign my site and I now realise that some of my pages have poor names (e.g "blah blah.html" instead of "blah-blah.html") so I have white spaces in some of the url names. The urls in the new sites will also make better use of my keywords. I have backlinks from article directories etc to the urlnames that I don't like now and I obviously don't want broken links all over my site. What's the best way to redirect oldname.html to newname.html ? Thanks...
As long as you are using a a linux server with apache (with mod-rewrite enabled) you could look at using .htaccess redirects - http://www.webweaver.nu/html-tips/web-redirection.shtml - however if the file names don't follow any standard (e.g. one file is called 'blah blah.html and another is blah_blah.html or blahblah 1.html) this probably won't work. You could look at emptying your current poor files (e.g. blah blah.html) and use meta redirects for each page Example of new blah blah.html page <html> <head> <meta http-equiv="refresh" content="0; url=http://example.com/blah-blah.html"> </head> <body> </body> </html> HTML: This will re-direct the visitors and search engines - but I'm not sure what it would do to the page's pagerank???
thanks mate - another approach that i found using google is this: Redirect 301 /oldpage.html http://www.example.com/newpage.html can anyone comment on whether it's bad for me from a PR/SEO point of view to have some effectively "dead" links permanently re-directing to the real pages. I'm probably looking at about 6 links that would have to be like that. Thanks.
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?> PHP: Thats the best way a 301 redirect. Works better with search engines!