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:) 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 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! Link to comment https://forums.phpfreaks.com/topic/209771-htaccess-problem/#findComment-1095228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.