how to access http://www.example.com/uch3245

Discussion in 'PHP' started by only_anu2005, Jul 13, 2008.

  1. #1
    hi,

    I need help.

    I want to access http://www.example.com/xyz.php?var=uch3245
    as

    http://www.example.com/uch3245


    Plz can any one help me
     
    only_anu2005, Jul 13, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Modrewrite...
    A rule along the lines of:

    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([a-z0-9]+)$ xyz.php?var=$1
    Code (markup):
    Might not be exactly right but should be vaguely near, look into it yourself.

    Dan
     
    Danltn, Jul 13, 2008 IP