adv Posted September 23, 2012 Share Posted September 23, 2012 hello i have the following problem Options +FollowSymLinks RewriteEngine On RewriteRule ^get2\.php.+ /get2.php [R,NC,L] i have get2.php?say=ok i want to replace to show only get2.php , to hide after "?" , just to hide and keep the same functionality thanks Quote Link to comment https://forums.phpfreaks.com/topic/268701-hide-text-in-url/ Share on other sites More sharing options...
Christian F. Posted September 23, 2012 Share Posted September 23, 2012 You can't. The mod_rewrite Apache module doesn't change what the browser shows, it only translates what the browser sends into something else. So if the browser doesn't sent the "success" information details, your code has no way to know whether or not it succeeded. That said, you can use the rewrite rules to make something like /get2/success translate into get2.php?say=ok Quote Link to comment https://forums.phpfreaks.com/topic/268701-hide-text-in-url/#findComment-1380341 Share on other sites More sharing options...
adv Posted September 23, 2012 Author Share Posted September 23, 2012 thanks for your reply christian then how can i do it /get2/ok i have tried many scripts but i cant seem ot get it working can you please give me an example Quote Link to comment https://forums.phpfreaks.com/topic/268701-hide-text-in-url/#findComment-1380366 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.