Welcome to WebmasterWorld Guest from 54.159.214.27

Forum Moderators: open

302 Temporary redirects get indexed?

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

10+ Year Member



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 Sep 9, 2003 (gmt 0)

10+ Year Member



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

10+ Year Member



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 Sep 9, 2003 (gmt 0)

10+ Year Member



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

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



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
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month