How do I make a PHP friendly url?

Asked

Viewed 97 times

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?

  • https://stackoverflow.com/questions/3608031/how-to-hide-url-in-php

  • No use... I’ve done it anyway and always falls into error 404

  • Did you use Rewrite? https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module

  • <Ifmodule mod_rewrite. c> Options +Followsymlinks Rewriteengine on Rewritecond %{SCRIPT_FILENAME} ! -f Rewritecond %{SCRIPT_FILENAME} ! -d Rewritebase / Rewriterule ([ /]*)/? $ /$1.php [QSA,L] </Ifmodule>

  • Try using a micro framework that already does this, I recommend Flight,is very easy to use: http://flightphp.com/learn/

  • @Gustavocamargo This looks like a cannon shot to kill bird...

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.