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! Link to comment https://forums.phpfreaks.com/topic/162454-stealthing-php-_get-not-working/ 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] Link to comment https://forums.phpfreaks.com/topic/162454-stealthing-php-_get-not-working/#findComment-857521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.