How to use url rewrite

Discussion in 'PHP' started by tarun1979, Jun 12, 2007.

  1. #1
    Hi All,
    I am searching solution to following questions, if you have some idea or resources please do post it here.
    1) How to check if url rewrite is allowed on my server.
    2) How to implement url rewrite on my server.
    3) do you know a small working application for URL rewirte that i can use as a sample to learn.

    I have searched these question on web, but fails to get a proper answer.

    Regards
    Tarun K Bansal
     
    tarun1979, Jun 12, 2007 IP
  2. mrmonster

    mrmonster Active Member

    Messages:
    374
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    If the server is Apache you can do rewriting using .htaccess if mod_rewrite is enabled. You can use phpinfo() to check for mod_rewrite module under apache, if you see it there its enabled on the server.

    Now, since you don't have access to the servers config file you have to use .htaccess, you'll have to check if you are allowed to use it with the server admin or just try and use it.

    To make use of rewriting you need at least basic knowledge of regular expression, theres plenty of guides and references on that in google :)
     
    mrmonster, Jun 12, 2007 IP
  3. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Just play around with .htaccess and download Google: Regex Coach
     
    Kalyse, Jun 12, 2007 IP