Using /parameter instead using ?variable=value in querysrting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepakelan
    New Member
    • Nov 2006
    • 1

    Using /parameter instead using ?variable=value in querysrting

    Hello All,

    Instead of using querystring in url (http://www.yourdomain. com/index.php?page= aboutus) can it be done like http://www.yourdomain. com/aboutus

    Can this be done in php?

    Thanks,
  • TheMadMidget
    New Member
    • Oct 2006
    • 98

    #2
    Not exactly because http://www.yourdomain. com/aboutus should open http://www.yourdomain. com/aboutus/index.php .
    If you really what to you could make it http://www.yourdomain. com/?aboutus but to best idea if you really want to use querystrings and have the end result you want use could check to see if the http://www.yourdomain. com/index.php contains the query and redirect it using a header.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      You are talking about Apache's MOD REWRITE. Have a look at the tutorial about this at URL Rewriting Guide

      Ronald :cool:

      Comment

      Working...