I have a redirection but I don't know where it is activated?
I have installed a PHP application called GARRADIN. There is an .htaccess containing this line:
RewriteRule admin/plugin/(.*?)/(.*) /admin/plugin.php?_p=$1&_u=$2 [QSA,L]
This redirection works. plugin.php is called but parameters $1 and $2 are empty. $_GET['_p'] returns nothing into the script.
To understand why parameters are not transmitted, I have tried to modify .htaccess but whatever I do, it is not taken into account. It seems that this redirection is configured somewhere else?
What I did: - I have inserted an error into .htaccess, and I obtain a server error => OK, .htaccess is taken into account. - I modified the line to redirect to XXXXplugin.php but plugin.php is still called. - renamed .htaccess to BAK.htaccess => redirection is still working! - I have reset the browser cache, used another browser => same redirection.
so WHERE the redirection is configured?
THX for you help.
Complete .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule admin/plugin/(.*?)/(.*) /admin/XXXXXXXXXXXXplugin.php?_p=$1&_u=$2 [QSA,L]
RewriteRule f/([\d\w]+)/(.*) /file.php?id=$1&file=$2 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
.htaccess
in the admin directory or do you have any rules in the Server config files?