PDA

View Full Version : 301 redirect help please


suthra
11-01-2007, 07:28 AM
Our site had dynamic search urls of the form
uk.domain.com/search/<dynamic keyword>

for example:
uk.domain.com/search/widgets (basically the parameter in <dynamic keyword> varies

now due to analytics purpose, we changed it to:
uk.domain.com/search/<dynamic keyword>.html

How do i 301 redirect
uk.domain.com/search/<dynamic keyword> to
uk.domain.com/search/<dynamic keyword>.html

Thanks for any help :)

beu
11-01-2007, 10:40 AM
your analytics may not pass information via the 301.

suthra
11-01-2007, 10:49 AM
Thanks for the reply :),.
Analytics is for the new url, old url redirection is for the users who still type the old url

beu
11-01-2007, 10:53 AM
Thanks for the reply :),.
Analytics is for the new url, old url redirection is for the users who still type the old url
Ahhh... we need more information about the site server and so on for help with the 301.

see
http://forums.searchenginewatch.com/showthread.php?t=20065

Marcia
11-01-2007, 11:18 PM
There's a difference between redirecting and "remapping" URLs.

If you want to rewrite long URLS with query parameters to appear as friendly, pretty URLs, you "map" the pretty URL to the long, ugly ones using mod_rewrite. That isn't the same as doing an individual 301 redirect for each one. Here's how, in the first post:

http://forums.searchenginewatch.com/showthread.php?t=3925

That way, the user agent (browser or search engine spider) requests the "pretty" URL, the change is made server side before delivering the page, and that's the only one ever served or seen.

Just make sure to have all links pointing to the "pretty" URLs.

That's with Apache. For IIS, you can use ISAPI rewrite.