1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

seo friendly way to redirect one page to another?

Discussion in 'Black Hat SEO' started by theseodude, Jul 2, 2012.

  1. theseodude

    theseodude Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    303
    Likes Received:
    88
    I have an .html page on one of my websites. I need to make it .php
    the .html page has a lot of backlinks and I would hate to lose them, so how do I keep them?
    I have read on some seo blog that you can do 301 redirect, but I am not getting a very clear answer on how to do this.
    How do I redirect the .html to .php so that the search engines recognize this and the new page keeps all the backlinks?
     
  2. -ReX-

    -ReX- Power Member

    Joined:
    Apr 26, 2012
    Messages:
    707
    Likes Received:
    274
    Location:
    Manly, Australia
    301 redirects are usually for when you change domains. Im pretty sure the link juice go to your URL if it is an index page.
     
  3. theseodude

    theseodude Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    303
    Likes Received:
    88
    unfortunately, it is not the index page.
     
  4. ff1227

    ff1227 Junior Member

    Joined:
    Jan 31, 2011
    Messages:
    151
    Likes Received:
    82
    In your httaccess file add this:
    Code:
    Redirect 301 /old/oldpage.htm 
    /new/http://www.domain.com/newpage.php
    Make sure the old page does NOT have http://www.yourdomain.com but the new URL does. I don't know why the old one is done as a relative URL but it just is done that way. You can edit httaccess with any text editor like notepad. That's it. Upload it back to your server and save it.
     
  5. theseodude

    theseodude Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    303
    Likes Received:
    88
    ff1227, what if both old and new files are in root?
    I am not sure what you mean by /old/ and /new/
     
  6. Initial Effort

    Initial Effort Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 29, 2010
    Messages:
    1,779
    Likes Received:
    267
    Location:
    Minnesota
    You can 301 redirect one innerpage like your page.html to your new page.php without a problem.
     
  7. paulwilliams972

    paulwilliams972 Regular Member

    Joined:
    Apr 24, 2012
    Messages:
    370
    Likes Received:
    37
    Location:
    Tester World
    i will suggest check this
    css-tricks.com/how-to-redirect-indexhtml-to-indexphp/

    301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
     
  8. theseodude

    theseodude Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    303
    Likes Received:
    88
    Hi
    I followed the instructions on this site, which agrees with what you guys are saying
    301redirects*net/301-redirect-old-page-tonew-page.php


    but it is not working. It does not redirect. And yes, I did upload new .htaccess.
     
  9. markhenry121

    markhenry121 Elite Member

    Joined:
    Oct 14, 2011
    Messages:
    2,148
    Likes Received:
    240
    Hey!! check this thread
    blackhatworld.com/blackhat-seo/black-hat-seo/457359-redirect-301-good-search-engine-optimization.html
     
  10. ff1227

    ff1227 Junior Member

    Joined:
    Jan 31, 2011
    Messages:
    151
    Likes Received:
    82
    If they're in the root then there just won't be an folders involved. I just included them there for demonstration.


    A 301 is a search engine redirect, not for real users. You said you wanted your backlinks and stuff to carry over to the new page and point the new searches to that new page. Besides preventing duplicate content on your own site, that's all a 301 redirect does. You can use this free tool to check if it has been set up properly.

    Code:
    [URL]http://www.internetofficer.com/seo-tool/redirect-check/[/URL]
     
  11. theseodude

    theseodude Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    303
    Likes Received:
    88
    OK, so actually, the html is redirecting to php properly...all I had to do is delete cookies, now when I go to html it redirects to php
    Now I would like to know if I should to go every place that mentions the oldfile.html and replace that with newfile.php?
    meaning: many pages on my website mention this oldfile.html in the source.
    should I find/replace oldfile.html with newfile.php everywhere it appears? or leave it as oldfile.html ?
     
    Last edited: Jul 2, 2012
  12. shurk

    shurk Junior Member

    Joined:
    Feb 2, 2011
    Messages:
    122
    Likes Received:
    45
    If you've put a 301 redirect in place, then technically you already have as the redirect will always push the user from file.html to file.php.
     
  13. infoasian

    infoasian Supreme Member

    Joined:
    May 12, 2011
    Messages:
    1,359
    Likes Received:
    427
    Occupation:
    retired
    Location:
    Singapore
    Home Page:
    301 redirects real users to new url, not just search engines. Google does not always apply backlinks to redirected pages.