A
A
adgjmptwnoma2020-07-12 14:55:17
Apache HTTP Server
adgjmptwnoma, 2020-07-12 14:55:17

How can I make it open the cases.html page and not the cases folder?

The static site has the /cases page and the cases folder with the files of the cases themselves. How to set up in .htaccess so that clicking on amaio.ru/cases opens an html file, and not a folder with the same name?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-07-12
@adgjmptwnoma

DirectorySlash off

RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule (.*) /$1.html [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question