Advice 1: How to make a redirect to another website

To redirect the visitor to another Internet resource, you can use the embedded web running Arache. When you request pages on your site server software first looks in the folder these pages, call the file with the name ".htaccess". If it exists, then the server will follow him written directives. You can put this file and the redirection command as within the same siteor on any external address.
How to make a redirect to another website
Instruction
1
If you want to do redirect all the visitors requesting any page on your website, in. htaccess you should use:Redirect / other site.
2
You can send to another website only those who are requesting pages from a specific folder of your site. For example, for a folder with the name goOut Directive given above, you need to change in this way:Redirect goOut/ http://kakprosto.ru
3
It is possible to send to another site, only those visitors who request documents of a certain type. You need to use another Directive RedirectMatch. It differs from the Redirect Directive because it uses a comparison of the query and written to the htaccess conditions regular expression (regexp). For Example:RedirectMatch (.*).html$ http://kakprosto.ru
4
To implement this redirection method in practice, open a simple text editor (Notepad) and create a blank document. Make the criteria on the basis of the rules and write it in the document. Then save with name ".htaccess" and upload it to the root directory of your site. This procedure will be completed.

Advice 2: How to make the transition to another site

Organize regular automatic transition of all visitors to one specific page on another website you can either server and server-side programming languages, either using HTML and JavaScript. The advantages of the second option in the ease and availability for its implementation does not require knowledge of programming, of the mandatory requirements only need access to edit the source code of the page.
How to make the transition to another site
Instruction
1
It is possible to solve the problem automatically redirect visitors to another website only using HTML (HyperText Markup language "hypertext markup language"). It is a command (meta tag), which tells the browser that after loading the current page should start loading another. This meta tag contains information (attributes tag) of the address redirection and time through which to send the request to a page on another website. Look it can, for example, like this:<meta http-equiv="Refresh" content="5; URL=http://www.kakprosto.EN">This Refresh - this is a code word that triggers the redirection mechanism. Figure 5 indicates that the process should start in 5 seconds after loading this page. This time it may be necessary to the visitor, for example, had time to read the message you put in this page. If this pause is not needed - check the zero. And URL=http://www.kakprosto.EN contains the address to which the browser should send the visitor. To put this meta tag in the header should be part of the source page between the tags <head> and </head>.
2
Another method is implemented using the JavaScript programming language. You will need only one line of code to redirect the web surfer to the correct address. It may look like this:window.location.reload("http://www.kakprosto.ru");Or:document.location.replace("http://www.kakprosto.ru");Or:document.location.href="/";Here you only need to replace the address that you need. This command must be placed inside tags that tell the browser that it is written in JavaScript:<script type="text/javascript">
document.location.replace("http://www.kakprosto.ru");
</script>But these three lines in turn, it is better to knead in the same header area (between <head> and </head>).
3
After you select one of these options, open the page, e.g., page editor management system websiteohms. Switch to edit HTML code and find the </head> tag. Copy the prepared code redirect (JavaScript or HTML) and paste it before this tag. Then save the modified page.
Is the advice useful?
Search