M
M
Morozov_Evgeny2016-07-15 09:50:42
htaccess
Morozov_Evgeny, 2016-07-15 09:50:42

How to make a site from two html files work without cms?

I want to make a website.
The domain already exists. I have a html page ready. I will not install any CMS.
I need that when I enter my domain mysite123.me, this page opens and the address bar of the browser displays just the name of my domain: mysite123.me.
I have already placed the html page in the public_html folder on the hosting.
I also have a second page. It should open if the user navigates to mysite123.me/pages/two

Where do I need to put the pages and what do I need to write in the htaccess file to make it all work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aslan, 2016-07-15
@iFlashka

You can write in htaccess for beauty

RewriteEngine On
RewriteCond %{REQUEST_URI} ! \.html$
RewriteCond %{REQUEST_URI} ! /$
RewriteRule ^(.*)$ $1.html

Whatever .html is at the end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question