homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google News Archive
Forum Library, Charter, Moderator: open

Google News Archive Forum

    
302 Temporary redirects get indexed?
Rearden

10+ Year Member



 
Msg#: 16803 posted 6:49 am on Sep 8, 2003 (gmt 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.

 

Rearden

10+ Year Member



 
Msg#: 16803 posted 2:44 pm on Sep 9, 2003 (gmt 0)

Any ideas, anybody?

xlcus

10+ Year Member



 
Msg#: 16803 posted 3:51 pm on Sep 9, 2003 (gmt 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.

xlcus

10+ Year Member



 
Msg#: 16803 posted 3:53 pm on Sep 9, 2003 (gmt 0)

...this will make it look like the content is at the simple URL without any browser side redirecting at all.

jdMorgan

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



 
Msg#: 16803 posted 4:02 pm on Sep 9, 2003 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google News Archive
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved