homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

how to hide the redirect query string in httpd.conf file?

 11:07 am on Sep 4, 2013 (gmt 0)

RedirectMatch /(.*)/(.*)/(.*)/ http://example.com/myphp/redirect.php?$0

when i redirect to that particular redirect page..that Query string value need to hide... no one see..but inside i want that query string value also..any option inside there RedirectMatch.

Thank u

[edited by: phranque at 11:19 am (utc) on Sep 4, 2013]
[edit reason] Please Use Example.com [webmasterworld.com] [/edit]



 11:18 am on Sep 4, 2013 (gmt 0)

you have to use mod_rewrite directives (RewriteRule/RewriteCond) to examine or remove the query string.


$0 has no value


 11:22 am on Sep 4, 2013 (gmt 0)

While redirecting me only pass that values..Go to someother page..

redirect /something/here these two values i passed to one php file..that query string i get it..that quyery string hide only not need to remove


 11:31 am on Sep 4, 2013 (gmt 0)

Edit: Whoops! Whole long discussion took place while I had another tab open.

mod_alias (Redirect by that name) doesn't do query strings. For that you need mod_rewrite (RewriteRule with [R] flag). Which, in turn, means that any existing redirects need to be changed over from mod_alias to mod_rewrite.

You can't hide a query string; you can only disguise it as something else, like

example.com/aa/bb/cc >> example.com/index.php?one=aa&two=bb&three=cc

There's no {display: none;} for URL elements :(

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved