SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Handling 301's

  1. #1
    SitePoint Wizard Dean C's Avatar
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    2,906
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Handling 301's

    I just want to confirm that the big search engines can handle two 301 redirects.

    If I have an original url at www.example.com/somestring.html and I use a .htaccess (R=301) to send it to handler.php?do=somestring.html, which then does a 301 redirect to the correct content at another url.

    Basically I'm chaining redirects. Is that okay to do?

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Why chain them when you can point to the final destination directly?

  3. #3
    SitePoint Wizard Dean C's Avatar
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    2,906
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because it's not that simple. Based on the URL Im trying to access, there are potentially lots of different locations it could redirect too. So I'm passing my URL to a php script to handle, and then generate the correct URL and then 301 to it

  4. #4
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SE's should not have a problem with that. However, a better way to do it would be to have an internal redirect to handler.php and then throw a 301 from the handler?
    Winners Respond. Losers React.
    Singapore Web Designer


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •