How to retrieve GET variables after it has been modified by .htaccess RewriteRule?

0

I have the following rule in .htaccess

RewriteRule ^acesso-erro/(.*) proc_error.php?error=$1 [L]

This rule retrieves the variables from the URL and places a variable "error".

How can I retrieve this variable from the proc_error.php page?

    
asked by anonymous 07.06.2017 / 20:05

1 answer

0

You can receive in the same way that you retrieve in POST or GET mode. Ex. $ Error = $ _GET ['error'];

    
07.06.2017 / 20:23