Why my link doesnt work?

Hello, i have this URL: mysite.com/recover/KNYtE3gD0xCRlkesoLJK42OhN
that returns Internal Server Error

URL mysite.com/recover works just fine!

where recover is php file and i expect KNYtE3gD0xCRlkesoLJK42OhN is value of GET

And here is my .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]

ErrorDocument 404 mysite.com/404

Options -Indexes

Whats could be wrong?

Iā€™m no expert with htaccess, but I image the serer is looking for

mysite.com/recover/KNYtE3gD0xCRlkesoLJK42OhN.php

Is that what you want?

1 Like

Nope recover is a php file not the code

Anyway got it fixed :slight_smile:

Would you mind sharing how, for posterity?

1 Like

I was using one of my own codes. ā€¦ It used modules folder and a if statement to control pages. I tried to do it without it.