Miscellaneous

Can I make mydomain.com point to mydomain.com/nucleus?

Scenario:
"I installed Nucleus in its own /nucleus/ directory to organize files but I want someone visiting http://mydomain.com/ to see the Nucleus page right away without having to go to http://mydomain.com/nucleus/ - is this possible?"

Solution:
Create an index.php file in the your root directory (mydomain.com). Make sure there are no other main index-type files (index.htm, index.html, etc) and include the following code in the index.php file:

<?php
header("HTTP/1.1 301 Moved Permanently");
header('Location: http://example.com/nucleus');
?>

This will redirect every user/request to the /nucleus/ directory.

Original forum thread (thanks, Winnie and pepiino!):
http://forum.nucleuscms.org/viewtopic.php?t=9575

section: Miscellaneous | submitted by Leng on 2006.Feb.18 | 3462 views

item rate
Total votes: 13 - Rating: 7.62

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10