D
D
deskostyuk2020-03-11 14:46:53
URL Handling
deskostyuk, 2020-03-11 14:46:53

How to make the url structure I need?

Hello. I want to make a site structure where there will be a page with cases (cases.html) and the cases/nazvanie.html cases themselves, but without adding html in the address. If I just specify /cases, then the browser tries to open the folder, not cases.html. What to do? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-03-11
@dodo512

DirectorySlash off

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