Jump to content

Hide Text In Url


adv

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.