mesh2005 Posted January 14, 2008 Share Posted January 14, 2008 I found a rewrite rule that some people claim to be working but unfortunately it is not on my machine: RewriteEngine On RewriteRule art/(.*) art.php?name=$1 This goes to art.php but the GET variable is always empty Any idea? Quote Link to comment https://forums.phpfreaks.com/topic/85932-get-variables-are-always-empty-when-rewriting-dynamic-urls/ Share on other sites More sharing options...
dooper3 Posted January 14, 2008 Share Posted January 14, 2008 Try using RewriteEngine On RewriteRule art/([A-Za-z0-9_]+)?$ art.php?name=$1 Quote Link to comment https://forums.phpfreaks.com/topic/85932-get-variables-are-always-empty-when-rewriting-dynamic-urls/#findComment-438711 Share on other sites More sharing options...
madmax Posted January 15, 2008 Share Posted January 15, 2008 Check out this bug report re: query string and environment vars http://bugs.php.net/bug.php?id=36706 Bug #36706 $_GET always empty Quote Link to comment https://forums.phpfreaks.com/topic/85932-get-variables-are-always-empty-when-rewriting-dynamic-urls/#findComment-440228 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.