View Single Post
  #1  
Old 6th Jan 05, 12:52 AM
SlickVic78's Avatar
SlickVic78 SlickVic78 is offline
Senior Member
 
Join Date: Sep 2001
Location: New York, USA
Posts: 515
SlickVic78 is an unknown quantity at this point
Need Help With URL Manipulations.
Hello All,

I decided to try and play around with directives/parameters you can place within .htaccess within a directory on a web hosting server. I am looking to do the following and really have no clue (after looking through the vast amount of sites online) what to really use (since I am not sure what I am looking for).

This is what I would like to accomplish:

Change This: http://www.mydomain.com/index.php?pg=home
To This: http://www.mydomain.com/home

Obviously, the modified URL will act just like the original link so that I can easily use the pg variable within my code (since I have a few checks on the variable "pg").

Also, continuing with this same concept, would it be easy to pass multiple variables within the same URL (example: http://www.mydomain.com/index.php?pg=home&cmd=do)?

Any help would greatly be appreciated.

Thanks in advance!
-SlickVic78
__________________
  • Pentium 4 3.20GHz Processor
  • 1 Gig DDR 400MHz RAM
  • 100 Gig 7200 RPM Western Digital HDD
  • 80 Gig 7200 RPM Western Digital HDD
  • Lite-On LTR-52327S CD-RW Burner
  • Lite-On SOHW-1633S DVD Burner
  • ATI Radeon 9700 Pro
  • Sound Blaster Audigy
  • Microsoft Windows XP Pro SP-2
Reply With Quote