J
J
Juniorrrrr2022-01-28 10:47:52
htaccess
Juniorrrrr, 2022-01-28 10:47:52

How to set up routing using htaccess?

Please tell me there is a page about.html, how to make it so that when you go to the page https://testdomain.ru/aboutpage , the server gives the about.html file.

For example, by default, when going to https://testdomain.ru/ , the site gives the index.html file, but there is no need to write https://testdomain.ru/ inex.html.

The site is simple, without any backend/frontend logic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2022-01-28
@Juniorrrrr

RewriteEngine on

RewriteRule ^aboutpage$ /about.html [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question