Results 1 to 5 of 5

Thread: 301 Redirect Question

  1. #1
    Registered
    Join Date
    Mar 2006
    Posts
    156

    301 Redirect Question

    Hi,

    Im going to change some of the URLs of the site in my sig, to more SE friendly ones. Specifically im going to change the www.famousdeaddb.com/list.php page to /list/

    It's important than i change it to that, because i'll also be adding other pages inside the /list/ one, like /list/Presidents, etc.

    But im not sure how to do it. Should i do a 301 redirect from "list.php" to "/list/" and then do another basic redirect from "/list/" to "list.php" ?


    I know it's not the best thing to change the URLs names and im prepare to lose some traffic/Pagerank for a while. Any help would be appreciated!

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    When you say "and then do another basic redirect" what do you mean? You go from one url to another then back? That makes no sense.

    Just use mod_rewrite with 301s, that should work.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  3. #3
    Registered
    Join Date
    Mar 2006
    Posts
    156
    That's what's confusing me...

    By doing a 301 redirect im specifying that list.php is now /list/, but it will also mean that if someone types "/list/" they will go to list.php?

    To clarify what im trying to do:
    - If someone types "list.php", the URL should change to "/list/"
    - The second one was not actually a Redirect, but a mod_rewrite rule saying that "/list/" is actually being processed by "list.php"

  4. #4
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    you'll need to rename your functional list.php file to something else I think.

    So, you create a 301 redirect from list.php to /list/ then you setup modrewrite to make /list/ actually list2.php which contains all the code... or use one of the other SE friendly URL methods (such as making "list" an actual file)
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  5. #5
    Registered
    Join Date
    Mar 2006
    Posts
    156
    Terrific Chris, thanks a lot for your help! I'll try that and see how it goes.

Similar Threads

  1. Basic design question
    By izwar in forum HTML, CSS, Layout, and Design
    Replies: 11
    Last Post: 05-11-2006, 09:40 AM
  2. Redirect
    By k0r54 in forum HTML, CSS, Layout, and Design
    Replies: 3
    Last Post: 03-28-2004, 03:40 PM
  3. need to exclude one page from a general .htaccess redirect
    By Apollo in forum General Management Issues
    Replies: 1
    Last Post: 01-10-2004, 01:56 PM
  4. redirect with htaccess
    By albsure in forum Website Programming & Databases
    Replies: 6
    Last Post: 12-07-2003, 09:40 AM
  5. Redirect
    By lemon in forum Search Engine Optimization
    Replies: 1
    Last Post: 09-09-2003, 12:47 PM

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
  •