URL not SEO Friendly - Help Needed!!!

Discussion in 'PHP' started by dangerouslydead, Jun 28, 2009.

  1. #1
    I am using a free PHP script to generate a small web album. The problem with with this script is that it tries to hide the true URL by encrypting the URL. This makes the URL obscure hence SEO unfriendly.

    The URL ends up looking like

    http://hotcelebritywonder.com/All_Celebs/index.php?sfpg=Qi8qKioqKjhlM2Q1YjVkN2ZlOTQzZjI3MDkxNWM4NDc2MTUzMWVi
    Code (markup):
    I want the URL to come out as

    http://hotcelebritywonder.com/All_Celebs/B/
    Code (markup):
    The script that I am using is single file PHP Gallery. I have uploaded the PHP file with this post. Someone help me please! I am plain broke right now after losing my job and was hoping to make some money through this site!
     

    Attached Files:

    dangerouslydead, Jun 28, 2009 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    use .htaccess and mod_rewrite.
     
    Louis11, Jun 28, 2009 IP
  3. scorpionrebel77

    scorpionrebel77 Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ^^ can you please elaborate and put more light on it??
     
    scorpionrebel77, Sep 14, 2010 IP
  4. HungryMinds

    HungryMinds Active Member

    Messages:
    216
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #4
    Hi!

    Use .htaccess File

    .htaccess Comands:

    
    RewriteEngine on
    RewriteRule ^All_Celebs/B/ /All_Celebs/index.php?sfpg=Qi8qKioqKjhlM2Q1YjVkN2ZlOTQzZjI3MDkxNWM4NDc2MTUzMWVi [L]
    
    Code (markup):
    Note: Switch On "rewrite_module" Through Wamp Server On Your Local Machine.
    Left Click On Wamp Server Tray Icon And Go To
    Apache > Apache Module > And Find And Checked "rewrite_module" In List.
     
    HungryMinds, Sep 14, 2010 IP