hiding parameters in URL

Discussion in 'Apache' started by sandhyan, Oct 29, 2007.

  1. #1
    Hi,

    I am using apache to host my website. Is there any way to hide the parameters that are being sent using Apache Mod rewrite?

    For eg: this is the url http://mysite/blog?pageid=test&name=peter

    I want to hide the parameters, basically everything that comes after "blog".

    Thanks
     
    sandhyan, Oct 29, 2007 IP
  2. evera

    evera Peon

    Messages:
    283
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think you should do that, but here is the code which could work:

    
    RewriteEngine on 
    RedirectMatch 301 ^/blog?pageid=(.*)&name=(.*) http://mysite/blog 
    Code (markup):
    You should rather rewrite the adress to something like http://mysite/blog/test/peter.html google likes that ;)
     
    evera, Nov 1, 2007 IP