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. 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] 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..? 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 Link to comment https://forums.phpfreaks.com/topic/104979-bah-rewriteengine/#findComment-538018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.