how does work this?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how does work this?

    how to code in php to get like this http://site.com/user?id=$id. I know only about to get http://site.com/user.php?id=$id
    does it work with .htacces or somethingelse?

    #2
    Like this.

    http://coding-talk.com/f19/mod_rewri...ld-user-30985/
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #3
      Originally posted by arnage View Post
      tnx for reply bro. But it doesn't done with what i mean , just i know about mod rewrite like http://sitename.com/user/$id/ , but i want to know do to http://sitename.com/user?id=$id

      Comment


        #4
        Try this rewrite than:

        Code:
        RewriteEngine on
        Options +FollowSymLinks
        RewriteBase /
        RewriteRule ^user?id=([0-9]+)$ user.php?id=$1 [L]
        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

        Comment

        Working...
        X