Wednesday, January 14, 2015

Website redirect / webpage redirect by html page and servers virtualhost

### We can do this by two way...
1) By adding a index.html page to the site for redirect to another site
2) By Adding some code in web-servers VirtualHost at httpd.conf file

we want to redirect page to
Goto example.coms index.html file and code those

<html lang="en-US">
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=">
        <script type="text/javascript">
            window.location.href = ""
        <title>Page Redirection</title>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow the <a href=''>link to ABCXYZ</a>


<VirtualHost serverip:80>
Redirect permanent /

-------------------------------Enjoy This-----------------

No comments:

Post a Comment