Caliber Mengsk Posted September 27, 2012 Share Posted September 27, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/268861-url-variable-as-directories/ Share on other sites More sharing options...
requinix Posted September 27, 2012 Share Posted September 27, 2012 It's called URL rewriting. Give Google a shot: there's a lot of information out there and now that you know what it's called it'll be much easier to find it. Quote Link to comment https://forums.phpfreaks.com/topic/268861-url-variable-as-directories/#findComment-1381431 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.