rallokkcaz Posted March 24, 2009 Share Posted March 24, 2009 Is it possible to do something like "mysite.com/user:1". I've tried stuff like: RewriteEngine on RewriteRule ^user:([0-9]+)$ profile.php?id=$1 [L] But it doesn't work, any ideas on what i'm doing wrong, or solutions other than the one i'm doing. Link to comment https://forums.phpfreaks.com/topic/150939-using-a-colon-with-mod_rewrite/ Share on other sites More sharing options...
POG1 Posted March 24, 2009 Share Posted March 24, 2009 RewriteRule ^/user:([0-9]+)$ /profile.php?id=$1 [L] Try with the forward slashes Link to comment https://forums.phpfreaks.com/topic/150939-using-a-colon-with-mod_rewrite/#findComment-793000 Share on other sites More sharing options...
rallokkcaz Posted March 26, 2009 Author Share Posted March 26, 2009 That didn't work. ??? Link to comment https://forums.phpfreaks.com/topic/150939-using-a-colon-with-mod_rewrite/#findComment-794115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.