R
R
Roman Sarvarov2021-07-08 16:53:31
URL Handling
Roman Sarvarov, 2021-07-08 16:53:31

Where to place a domain to redirect to the main site?

I have a website (for example moykrutoysait.ru) and I want to make another domain, but with a shorter name (mkst.ru) to redirect to the main site.
But you need to redirect not to the main page, but to take into account the entire URL.
For example, for a user to go to mkst.ru/post/11 and be redirected to moykrutoysait.ru/post/11.
So here's the question itself - I don't want to buy hosting - are there any free ways to "host" this domain somewhere?
Preferably with ssl support.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-07-08
@megakor

you don't need to put it anywhere. place it in the same place as your site aliase (alias, mirror) and everything is
like that in the code

ServerName test1.loc
  ServerAlias test2.loc www.test2.loc www.test1.loc

or in the web panel there is a place where you can add it to
isp8.png
the screen, you can see where the domains are, just run a new domain on the same dns server
A but do not create a separate site.
as a result, the site will have a mirror
, and in .htaccess, just put a redirect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question