.htaccess index.php redirect to / (SEO FRIENDLY)

Discussion in 'vBulletin' started by googleminigames.com, Feb 8, 2008.

  1. #1
    Ok, i optimized one of my sites and i want to know for a MORE seo friendly index.php to make it like a index.html so it can look friendly, or can i just redirect index.php to / so instead of index.php?action=forum it can be like /?action=forum ,, even though i removed the ? i know a lot about SEO but just don't know a lot about Apache lol.. Someone Please Help :)

    nvrmind i actually Did it MYSELF!

    RewriteEngine on
    Options +FollowSymlinks
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
    RewriteRule ^(.*)index\.php$ http://googleminigames.com/$1 [R=301,L]

    For Those Who Need it
     
    googleminigames.com, Feb 8, 2008 IP
  2. Rocs

    Rocs Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thanks for the headsup, this could come in handy
     
    Rocs, Feb 12, 2008 IP
  3. googleminigames.com

    googleminigames.com Banned

    Messages:
    1,335
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah it does... :) i use it on my site. =D
     
    googleminigames.com, Feb 12, 2008 IP
  4. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Will this work for SMF?
     
    Bohol, Feb 13, 2008 IP
  5. googleminigames.com

    googleminigames.com Banned

    Messages:
    1,335
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yeah it works. again.. i use it on my forum =D
     
    googleminigames.com, Feb 13, 2008 IP
  6. xXKingdom_SEOXx

    xXKingdom_SEOXx Peon

    Messages:
    912
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I need to get my root to redirect to my index.php on vBulletin system, could osmeone help me by any chance?
     
    xXKingdom_SEOXx, Feb 13, 2008 IP
  7. googleminigames.com

    googleminigames.com Banned

    Messages:
    1,335
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Access FTP, and change my url of googleminigames.com to your url =D it will work
     
    googleminigames.com, Feb 13, 2008 IP
  8. xXKingdom_SEOXx

    xXKingdom_SEOXx Peon

    Messages:
    912
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #8
    where to put what? :confused:
     
    xXKingdom_SEOXx, Feb 13, 2008 IP
  9. googleminigames.com

    googleminigames.com Banned

    Messages:
    1,335
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Put the code i posted below in a file called .htaccess in your root folder if you dont have one , place that code in notepad or whatever text editor you use and save it as all files but with .htaccess and place it in your root folder should work now
     
    googleminigames.com, Feb 13, 2008 IP
  10. rockinaway

    rockinaway Guest

    Best Answers:
    0
    #10
    You can use SEO modifications that do the job. For example SEO4SMF for SMF. But I guess this is a nice simple way to do the basics. If you search Google, there are plenty of other ways you can make you forum SEO friendly.
     
    rockinaway, Feb 15, 2008 IP