Q
Q
qu1kgg2020-05-08 02:58:11
htaccess
qu1kgg, 2020-05-08 02:58:11

How to add code so that everything goes to index.php?

How to add code so that everything goes to index.php?

RewriteRule ^master/([0-9]+)/? master.php?id=$1 [QSA,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Ivanov, 2020-05-08
@qu1kgg

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^(.*)$ $1 [L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question