T
T
the5x2019-04-18 09:43:10
Apache HTTP Server
the5x, 2019-04-18 09:43:10

If I enter the URL for the first time, it redirects to index.php, if the second time, the page opens, what could it be?

If I enter the URL /rss for the first time (there is an xml file), it redirects to index.php, if the second time, the page opens, what can it be and where to look? In .htaccess like this:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2019-04-18
@Rsa97

In index.php
It is likely that the file you need is created there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question