Answer the question
In order to leave comments, you need to log in
How to handle requests for folder names?
There is a folder called handler
How to process a request localhost/handler
so that the folder does not open, but opens the specified page, for example 404.php
?
Answer the question
In order to leave comments, you need to log in
# Installation directory
RewriteBase /
# Protect hidden files from being viewed
<Files .*>
Require all denied
</Files>
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
# godaddy hack no input file specified
RewriteRule .* index.php [PT,QSA,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question