HTML to PHP Deep Links

Discussion in 'Google' started by muthuselvan, Oct 27, 2009.

  1. #1
    My website is one year old baby, just now I changed my deep links from html pages to php pages. Is this right or wrong for SEO?

    Thanks in advance! :)
     
    muthuselvan, Oct 27, 2009 IP
  2. thanapa

    thanapa Well-Known Member

    Messages:
    527
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #2
    You can forward html url's to new php url's using htaccess file. It is good seo practice.
     
    thanapa, Oct 27, 2009 IP
  3. rehash

    rehash Well-Known Member

    Messages:
    1,502
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    150
    #3
    It should be the same.
     
    rehash, Oct 27, 2009 IP
  4. Jinx3000

    Jinx3000 Well-Known Member

    Messages:
    814
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #4
    lol does anyone even know what he's TRYING to say.


    Long story short: try and find out whether or not people have linked to deep pages of your site - and redirect those accordingly. Preferrably you'll permanently redirect all pages, obviously, depending on how many pages your site holds.

    For Wordpress sites, there are plugins who can create your htaccess for you if you add the new permalink structure.
     
    Jinx3000, Oct 27, 2009 IP
  5. dipali

    dipali Peon

    Messages:
    450
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Man, what u doing ? first redirect all your pages using 301 redirect. if your site is hosted on apache server then redirect your site with the help of .htaccess file and if your site is hosted on iis server then redirect your site with the help of mode rewrite. if you dont do this then you will loss your rankings and traffic. guess some is landing on your old page through organic search then your page is moved.. and you lost visitor.. so rush up..
     
    dipali, Oct 27, 2009 IP
  6. muthuselvan

    muthuselvan Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you very much to all, can any one tell me how can I redirect in my htaccess file?
     
    muthuselvan, Oct 28, 2009 IP
  7. Jinx3000

    Jinx3000 Well-Known Member

    Messages:
    814
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Google knows, a search of these forums works too.
     
    Jinx3000, Oct 28, 2009 IP
  8. STAR Cruiser

    STAR Cruiser Well-Known Member

    Messages:
    782
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    120
    #8
    very simple.
    Open .htaccess file

    and just place below code
    RewriteEngine On
    Redirect 301 /example.html http://yoursite.com/examplekeyword.php

    If you are having some 100 pages site then you must do this for every page.
    If you do 301 redirect you will not loose traffic,PR and backlinks :)
     
    STAR Cruiser, Oct 28, 2009 IP
  9. dipali

    dipali Peon

    Messages:
    450
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you changed from .html to .php than take following steps to switch without losing ranking of those pages

    There are two ways to do this:

    - Tell Apache to parse all .php files a .html file. to do this, place this code in your httpd.conf file:
    Code:
    AddType application/x-httpd-php .php .html

    - Use a 301 redirect to redirect from the .php files to the .html files.
    Code:
    RedirectMatch 301 ^/(.*)\.html$ http://www.yourdomain.com/$1.php
     
    dipali, Oct 29, 2009 IP
  10. muthuselvan

    muthuselvan Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks for your reply to all...
     
    muthuselvan, Oct 29, 2009 IP