Ask

Is there any plugin or component that would allow me to have the homepage www.mysite.com be a redirection to another url without any modification to the index.php of the root ?

I still need to accesss some component's page in the frontpage, but if www.mysite.com is typed it would redirect to www.othersite.com


Answer

1/ In root folder, open .htaccess or rename htaccess.txt to .htaccess then add the following code at the bottom:

DirectoryIndex index.html index.php

2/ Creating new index.html with the content:

<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.othersite.com">
</head>
<body bgcolor="#FFFFFF">
</body>
</html>

Now, if you enter http://www.mysite.com you will redirect to http://www.othersite.com

If you want to access old page please enter http://www.mysite.com/index.php