NorthWestSimulations Posted May 10, 2008 Share Posted May 10, 2008 How do I get my website to have a filename like: www.example.com/index.php?page=profile&username=carl to be like: www.example.com/profile/carl Doesnt have to be exactly like this but in a similar way. Quote Link to comment https://forums.phpfreaks.com/topic/104979-bah-rewriteengine/ Share on other sites More sharing options...
The Little Guy Posted May 10, 2008 Share Posted May 10, 2008 Try this: Options +FollowSymlinks RewriteEngine on RewriteRule ^/([^/]+)/([^/]+) inedx.php?page=$1&username=$2 [NC] Quote Link to comment https://forums.phpfreaks.com/topic/104979-bah-rewriteengine/#findComment-537344 Share on other sites More sharing options...
Cory94bailly Posted May 11, 2008 Share Posted May 11, 2008 I have a question on this.. Would it make a physical folder called car1 or just..? Quote Link to comment https://forums.phpfreaks.com/topic/104979-bah-rewriteengine/#findComment-537990 Share on other sites More sharing options...
The Little Guy Posted May 11, 2008 Share Posted May 11, 2008 no. Here is a tutorial that I like, and still use: http://corz.org/serv/tricks/htaccess2.php Quote Link to comment https://forums.phpfreaks.com/topic/104979-bah-rewriteengine/#findComment-538018 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.