SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2013
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How long to 301 redirect specific pages?

    When I first made my website about a month ago, I made all the pages .htm. But then this week I changed that to .php so I could change the header and footer in a separate file.

    I setup a 301 redirect for each page in my .htaccess file. I also changed one page from Promotions to Services and set a 301 redirect for that too.

    My question is if I should leave those 301 redirects there forever? Or is there some amount of time that they need and then I can remove them?

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,411
    Mentioned
    273 Post(s)
    Tagged
    5 Thread(s)
    Do you mean 301 or 302? Your title says one and your post says the other.
    Edit:

    It doesn't now - I edited it for the sake of clarity.


    302 is a temporary redirect, so you leave it as long as necessary - until the temporary situation changes.

    301 is a permanent redirect. If your page has changed permanently, then you want to leave the redirect there permanently, so that any incoming links from other sites that point to the old page are automatically redirected to the correct new page. As your site was only online for a month, you may not have any links to your .htm pages, or they may be so few that you can contact the relevant sites and ask them to update their links. In that case, you could probably safely remove the redirect once you're sure Google and the other search engines have updated their links. Personally, I'd just leave it permanently. Having it there if it's not needed won't cause any problems; not having it there if it is needed might.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2013
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TechnoBear View Post
    Do you mean 301 or 302? Your title says one and your post says the other.
    Sorry, I meant 301. The title is a typo :-)
    302 is a temporary redirect, so you leave it as long as necessary - until the temporary situation changes.

    301 is a permanent redirect. If your page has changed permanently, then you want to leave the redirect there permanently, so that any incoming links from other sites that point to the old page are automatically redirected to the correct new page. As your site was only online for a month, you may not have any links to your .htm pages, or they may be so few that you can contact the relevant sites and ask them to update their links. In that case, you could probably safely remove the redirect once you're sure Google and the other search engines have updated their links. Personally, I'd just leave it permanently. Having it there if it's not needed won't cause any problems; not having it there if it is needed might.
    Excellent, makes perfect sense. Thank you!

  4. #4
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,411
    Mentioned
    273 Post(s)
    Tagged
    5 Thread(s)
    Quote Originally Posted by MechElec View Post
    Sorry, I meant 301. The title is a typo :-)
    That's OK - I've amended it in case anybody else is looking for the same information.

    Quote Originally Posted by MechElec View Post
    Excellent, makes perfect sense. Thank you!
    Glad I could help.

  5. #5
    SitePoint Member
    Join Date
    Oct 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Guys, can anybody tell me if we 301 redirect the page, do all the links to that pecific page also get redirected? and if it is a 302 redirect what happens then?


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
  •