How to recover GET variables after it has been modified by . htaccess Rewriterule?

Asked

Viewed 40 times

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 puts in a "error".

How can I recover this variable on the page proc_error.php?

1 answer

0


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

  • yes [and php. worked

Browser other questions tagged

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