Permanent redirect or other?

Discussion in 'Google' started by corlas, Nov 8, 2009.

  1. #1
    Hi all,

    I have a site that used to have an index.html page now I have installed an article directory script and the index has become index.php.

    I see some crawling errors. I tried to insert a 301 permanent redirect in the htaccess file but the site cannot be crawled.

    What is the best way to redirect from the index.html to index.php?

    Thanks/Regards
     
    corlas, Nov 8, 2009 IP
  2. Qsa

    Qsa Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    open index.html and enter this code :

    <META HTTP-EQUIV='Refresh' CONTENT='0; url=http://www.yoursite.com/index.php'>
    Code (markup):
    chang the domain name .

    good luck bro
     
    Qsa, Nov 8, 2009 IP
  3. DartLady

    DartLady Active Member

    Messages:
    126
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    That's good to know. Thanks Qsa!
     
    DartLady, Nov 8, 2009 IP
  4. Traffic-Bug

    Traffic-Bug Active Member

    Messages:
    1,866
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Use this in .htaccess to insert 301 redirect for index.html to index.php
    RewriteEngine On
    RewriteRule ^index.html index.php
     
    Traffic-Bug, Nov 8, 2009 IP
  5. dipali

    dipali Peon

    Messages:
    450
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    use 301 redirect for redirecting index.html to index.php, use below code

    Options +FollowSymLinks
    RewriteCond %{THE_REQUEST} ^.*/index.html
    RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L]

    dont be panic, it will take some to crawl new redirected pages.
     
    dipali, Nov 8, 2009 IP