A
A
Alexey2018-05-22 11:18:34
Apache HTTP Server
Alexey, 2018-05-22 11:18:34

How to remove 301 redirect from APACHE?

Faced with the fact that in Wordpress I have a 301 redirect to all files except index.php in the root directory of the server:
For example:
server.com/file.js redirects to server.com/index.php

.htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Tell me how to allow "see" file.js in the root of the Apache server and not do a redirect?

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