Welcome to WebmasterWorld Guest from 54.196.217.43

Forum Moderators: open

Message Too Old, No Replies

302 Temporary redirects get indexed?

     
6:49 am on Sep 8, 2003 (gmt 0)

New User

10+ Year Member

joined:July 1, 2003
posts:34
votes: 0


I run a site that has some searchable content divided into various large categories. I set up various "<category>._____.com" pages which use Apache mod_rewrite to make a 302 temporary redirect to the real, harder-to-read URL.

Which one will be indexed in Google? Since it is set as a temporary redirect, it should use the nice simple URL, correct?

If not, what would be the best way to have the user-friendly URL get picked up? I'd prefer to avoid making separate pages for each one since there are a large number of categories involved.

2:44 pm on Sept 9, 2003 (gmt 0)

New User

10+ Year Member

joined:July 1, 2003
posts:34
votes: 0


Any ideas, anybody?
3:51 pm on Sept 9, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 5, 2002
posts:89
votes: 0


If you're using mod_rewrite, then don't use any kind of 30x rewrite. Use an internal rewrite instead...

RewriteRule ^short/url/$ location/of/page.php

i.e. Don't put [R] or [R=302] at the end.

3:53 pm on Sept 9, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 5, 2002
posts:89
votes: 0


...this will make it look like the content is at the simple URL without any browser side redirecting at all.
4:02 pm on Sept 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Rearden,

> Since it is set as a temporary redirect, it should use the nice simple URL, correct?

Yes, it should with a 302. But I agree with xlcus: use an internal redirect instead. I'd also add the [L] flag unless there is a good reason not to:


RewriteRule ^short/url$ /location/of/page.php [L]

Jim