jdock1 Posted June 16, 2009 Share Posted June 16, 2009 I want to stealth PHP, instead of using extensions I would be using something like mysite.com/file rather than mysite.com/file.php I do this by a htaccess file with this code: RewriteEngine on RewriteBase / RewriteRule file file\.php [T=application/x-httpd-php] It seems that $_GET doesnt work, I tried using $_REQUEST, which actually works but not all the time. Is there anyway I could use $_GET? Or anything else? Thanks! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 16, 2009 Share Posted June 16, 2009 You need to tell mod_rewrite to pass on the query string. RewriteRule file file\.php [L,QSA] Quote Link to comment 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.