1
I would like to use this to mask the data contained in the url,. something similar to:
localhost/webservice/networks.php? parametro=1 by localhost/webservice/networks/consult/
how do I do that?
1
I would like to use this to mask the data contained in the url,. something similar to:
localhost/webservice/networks.php? parametro=1 by localhost/webservice/networks/consult/
how do I do that?
Browser other questions tagged php htaccess url
You are not signed in. Login or sign up in order to post.
https://stackoverflow.com/questions/3608031/how-to-hide-url-in-php
– Pedro Pinto
No use... I’ve done it anyway and always falls into error 404
– Lucas Fonseca
Did you use Rewrite? https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module
– Pedro Pinto
<Ifmodule mod_rewrite. c> Options +Followsymlinks Rewriteengine on Rewritecond %{SCRIPT_FILENAME} ! -f Rewritecond %{SCRIPT_FILENAME} ! -d Rewritebase / Rewriterule ([ /]*)/? $ /$1.php [QSA,L] </Ifmodule>
– Lucas Fonseca
Try using a micro framework that already does this, I recommend Flight,is very easy to use: http://flightphp.com/learn/
– Gustavo Camargo
@Gustavocamargo This looks like a cannon shot to kill bird...
– bfavaretto