S
S
stimulator20072020-10-03 03:20:24
htaccess
stimulator2007, 2020-10-03 03:20:24

Why does deleting .php remove request data?

Making a request to example.com/script?data=123

$_REQUEST is missing any data

My .htaccess

RewriteEngine On
RewriteCond %{THE_REQUEST} " (/[^?/]+)\.php"
RewriteRule ^ %1 [R=301,L]

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]+)$ /$1.php$2 [L]

How can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stimulator2007, 2020-10-03
@stimulator2007

scored on $_REQUEST began to read through $_SERVER["REQUEST_URI"]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question