Answer the question
In order to leave comments, you need to log in
The directory opens, not the site, how to fix it ??
Hello guys!
Tell me please, I encountered such a problem that the script directory opens and not itself (website, script), I tried to make edits by type in htassese
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^([^\.]+)$ $1.php [NC,L]
Answer the question
In order to leave comments, you need to log in
https://yandex.ru/search/?clid=1882628&text=apache...
by default, the file should be called index.html or index.php
according to your rule, files without extensions will be opened, that is, /main instead of
/main.php login.php file - it will open as /login
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question