D
D
Dmitry Chekanov2018-03-21 12:50:14
htaccess
Dmitry Chekanov, 2018-03-21 12:50:14

How to disable standard redirects?

Good day!
The essence of the problem:
There is a folder /foo/ and a file /foo.1 . When following the link /foo , a slash => /foo/ is added , and this behavior should be disabled.
The log is like this:
REQUEST_URI = /foo;
If foo = folder and foo.1 = file, then send the request to the get.php file and the address should remain the same - /foo
tried this, it does not work:

RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}.1 -f
RewriteRule ^ get.php [L]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question