Jump to content

Url Variable As Directories?


Caliber Mengsk

Recommended Posts

Ok, I know this trick is done a lot with things like forums, but how do you do it?

 

For example, say I have a url:

http://mysite.com/index.php?var1=abcd&var2=1234

 

On some sites like forums and such, they are able to change this into directories and still have it call the one page. For example, the new URL would be something like:

http://mysite.com/abcd/1234

 

I'm guessing it's more .htaccess, but I'm not sure. Any help?

Link to comment
https://forums.phpfreaks.com/topic/268861-url-variable-as-directories/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.