tomindo Posted March 14, 2011 Share Posted March 14, 2011 I got a rewrite rule like below , for some reasons , the variable $2 does not pass. The redirected page is blank. I have a pretty much same rule , it works fine RewriteRule ^logger/(.*)/$ index.php?adm=logger&id=$2 Quote Link to comment https://forums.phpfreaks.com/topic/230556-mod_rewrite-does-not-pass-variable/ Share on other sites More sharing options...
DavidAM Posted March 14, 2011 Share Posted March 14, 2011 You only have one capture there, so it should be $1 RewriteRule ^logger/(.*)/$ index.php?adm=logger&id=$1 Quote Link to comment https://forums.phpfreaks.com/topic/230556-mod_rewrite-does-not-pass-variable/#findComment-1187195 Share on other sites More sharing options...
tomindo Posted March 14, 2011 Author Share Posted March 14, 2011 dang, i was trying to put $1 before but did not work. Anyway, it worked this time. Thanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/230556-mod_rewrite-does-not-pass-variable/#findComment-1187252 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.