kla0005 Posted August 4, 2010 Share Posted August 4, 2010 hey guys! I have a problem, ive found a mod_rewrite, that does that i can say 'domain.com/bake' and then the bake.php file will be opened! But, that is only the half solution of my problem. See, i wants to have that rewrite in the root folder, and then i wants a get id rewrite in the 'user' folder, so 'domain.com/users/bake', actually means: 'domain.com/users?p=bake'. Anyone who can help me, and understands my problem? Thanks:) Quote Link to comment https://forums.phpfreaks.com/topic/209771-htaccess-problem/ Share on other sites More sharing options...
wildteen88 Posted August 4, 2010 Share Posted August 4, 2010 You'll want to add another rule RewriteRule users/([a-z0-9_-]+)/? users.php?p=$1 Going to site.com/users/bake will call site.com/users.php?p=bake Quote Link to comment https://forums.phpfreaks.com/topic/209771-htaccess-problem/#findComment-1095164 Share on other sites More sharing options...
kla0005 Posted August 4, 2010 Author Share Posted August 4, 2010 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/209771-htaccess-problem/#findComment-1095228 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.