A
A
artshelom2019-03-21 17:12:19
htaccess
artshelom, 2019-03-21 17:12:19

How to redirect all requests to one .php?

How to redirect all requests with .htaccess and make an exception

RewriteCond %{REQUEST_URI} !^/index\.html$
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ index.php/$1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-03-21
@artshelom

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index\.html$
RewriteRule ^(.*)$ index.php [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question