homepage Welcome to WebmasterWorld Guest from 54.226.252.142
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Simple 301 question
Need answer to a 301 redirect question
Tyme




msg:4126219
 5:00 pm on May 3, 2010 (gmt 0)

I have a page with content that needs to move to a new folder on my site. But the content will be updated with some new stuff and therefore the page will change. The question is how long do I need to keep the old content page on the server? Do I delete the old page after the 301 is in place?

 

mack




msg:4129031
 10:05 pm on May 7, 2010 (gmt 0)

Once you have the 301 in place you can remove the old location because it will not be seen by users of bots. The redirect will send all traffic to the new location.

Mack.

rocknbil




msg:4129391
 6:56 pm on May 8, 2010 (gmt 0)

A small caveat, **just last week** I encountered a situation on a domain that I have never seen in my life, ever.

What mack says is completely true, however in this weird environment it failed. It supported mod_rewrite, so in the completed site redesign I added 301 RewriteRules from dumb-filename.htm to descriptive-rich-filename.html.

When I deleted the old files, the server returned a forbidden message, as if I were requesting a directory with no index.html (or something.) The mod_rewrites only worked when I put the old files (sans content) back in place. With the files in place, I checked server headers and it accurately redirected with a 301. Delete the files, error.

Weirdest thing I'd ever seen, but it was shared hosting and I had limited access to chase down the why.

mack




msg:4129554
 12:13 am on May 9, 2010 (gmt 0)

Sounds like a strange server configuration. Almost as if it was checking the old location and giving an error if they didn't exist.

Mack.

jdMorgan




msg:4129586
 1:57 am on May 9, 2010 (gmt 0)

rocknbil,

Disable MultiViews (mod_negotiation) and AcceptPathInfo if your site doesn't require them.

These functions can take precedence over mod_rewrite, and "rewrite" the requested URLs before mod_rewrite gets a chance to execute, likely mapping them to folders with the -Indexes option set in your case, resulting in a 403.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
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