My url looks like that
http://www.mydom.com/page.php?act=upd&lid-15364&bid=1002
Is there a way to hide these query string variables and user see just
http://www.mydom.com/page.php
Advance thnx
My url looks like that
http://www.mydom.com/page.php?act=upd&lid-15364&bid=1002
Is there a way to hide these query string variables and user see just
http://www.mydom.com/page.php
Advance thnx
submit your form using post instead of get
I dont submit any form this is a text link.
That URL has variables that are normally assigned via the GET method of a form. Unless you have literally typed that into your html, then you should use POST instead to hide them.
If you hardcoded, then you cannot. Can’t see why you would want to have it non-dynamic anyway.
you can use mod_rewrite to make your urls pretty if thats what your after.
google for it
mod_rewrite will do the trick, this is a part of my site’s mod_rewrite rules as an example:
Options +MultiViews
RewriteEngine on
RewriteRule ^search$ /index.php?action=search
RewriteRule ^stats$ /index.php?action=stats
RewriteRule ^admin$ /index.php?action=admin
RewriteRule ^view/book/(.*)$ /index.php?action=view&item=book&bId=$1
RewriteRule ^view/author/(.*)$ /index.php?action=view&item=author&aId=$1
RewriteRule ^view/publisher/(.*)$ /index.php?action=view&item=publisher&pId=$1
RewriteRule ^view/category/(.*)$ /index.php?action=view&item=category&cId=$1
RewriteRule ^xmldump/(.*)$ /dump.xml.php?bId=$1
RewriteRule ^admin/import$ /index.php?action=admin&item=import
RewriteRule ^list/books$ /index.php?action=list&item=book
RewriteRule ^list/authors$ /index.php?action=list&item=author
RewriteRule ^list/publishers$ /index.php?action=list&item=publisher
RewriteRule ^view/book /index.php?action=list&item=book
RewriteRule ^view/author /index.php?action=list&item=author
RewriteRule ^view/publisher /index.php?action=list&item=publisher
RewriteRule ^list/books/(.*)$ /index.php?action=list&item=book&page=$1
RewriteRule ^graph/(.*)$ /stats/graph.stats.php?draw=$1
Just put it in a .htaccess file and you are done!