Jump to content


How to hide Querystrings completely from URL using PHP

  • Please log in to reply
2 replies to this topic

#1 pawanarora

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 09 September 2006 - 10:21 AM

Hi All!!

I am Paw. I am a PHP Web Developer.
Now-a-days, I am developing a website using PHP.
In this website, there is a requirement to
* convert the file extension from php to htm and
* hide Querystrings completely from URL.

I have done the first one. But I am facing the problem to hide Querystrings completely.

Any suggestion will be greatly appreciated.



#2 AndyB

  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 09 September 2006 - 10:37 AM

Then use a different method for passing data from one page and making it accessible to another:

use forms (with 'hidden' inputs) and method="post" or use SESSIONS if the sending and receiving pages are a php files
Legend has it that reading the manual never killed anyone.
My site

#3 jefkin

  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts

Posted 09 September 2006 - 06:15 PM

Another option, depending on your web server, is using url rewriting (Apache REWRITE mod) to make the urls a user sees and uses completely different from what's going on behind the scenes.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users