It is possible to organize a permanent automatic transition of all visitors of one specific page to another site either by means of the server and server-side programming languages, or using HTML and JavaScript. The advantages of the second option are simplicity and accessibility - no programming knowledge is required to implement it; of the mandatory requirements, you only need access to edit the source code of the page.
Instructions
Step 1
You can solve the problem of automatically redirecting visitors to another site only using HTML (HyperText Markup language). It contains a command (meta tag) that tells the browser that after loading the current page, start loading another one. This meta tag contains information (tag attributes) about the redirect address and the time after which a request should be sent to a page on another site. For example, it may look like this: Here Refresh is the code word that starts the redirection mechanism. Number 5 indicates that the process should start 5 seconds after loading this page. This time may be needed for the visitor, for example, to have time to read the message that you put on this page. If such a pause is not needed, put zero. And URL = https://www.kakprosto.ru contains the address to which the browser should send the visitor. This meta tag should be placed in the header part of the page source code - between the and tags.
Step 2
Another way is implemented using the JavaScript programming language. You only need one line of code to redirect the web surfer to the correct address. It can look, for example, like this: window.location.reload ("https://www.kakprosto.ru"); Or like this: document.location.replace ("https://www.kakprosto.ru"); Or so: document.location.href = "/"; Here you only need to replace the address with the one you want. This command should be placed inside tags that tell the browser that it is written in JavaScript:
document.location.replace ("https://www.kakprosto.ru");
And these three lines, in turn, are better placed inside the same heading area (between and).
Step 3
After you select one of these options, open the desired page, for example, in the page editor of the content management system. Switch to HTML edit mode and find the tag in it. Copy the prepared redirect code (JavaScript or HTML) and paste it before this tag. Then save the modified page.