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. Quote 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 Quote 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. ??? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.