Hide a querystring from the URL using .htaccess

Discussion in 'Apache' started by kavakava, Sep 11, 2008.

  1. #1
    Hello,

    How can I hide querystring from URL using .htaccess so that instead of:

    http://www.site.com/subscribe.php?email=EMAIL@DOMAIN.COM&name=NAME
    Code (markup):
    it just shows, for example:

    http://www.site.com/subscribe.php
    Code (markup):
    Thanks!
     
    kavakava, Sep 11, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hi,

    That's HTTP Post, you can't mask HTTP GET (?key1=value1&key2=value2) while retaining values. You can redirect if you wish, but the email will be lost.

    Hope that helps,

    Jay
     
    jayshah, Sep 11, 2008 IP