PDA

View Full Version : Setting a directory as the homepage?



Jordan3606
14-12-2007, 08:21 PM
Haha, this is such a stupid question, but I need to know :P

Say I have www.example.com/example, how do I set the /example directory as the homepage?

+rep to the first person who helps.

Thankies ;)

Beau
14-12-2007, 09:01 PM
Ummmmmmmmmmmmmm... If you're on a cPanel account, you should be able to do it somehow I think, except I can't remember how :P For a quick fix, try something like this.



<?PHP

header('Location: ./example');

?>


Save that as index.php and upload it to your directory root :)

Jordan3606
14-12-2007, 09:11 PM
Yeah, I'm on cPanel :P

Anyway, thanks for that, it works, so it'll do just fine :) +rep ;)

Zaub
15-12-2007, 02:36 AM
For future reference, if you don't wanna mess around with code, you can go to the Redirects option in cPanel, and do it easily from there.

Jordan3606
15-12-2007, 10:52 AM
For future reference, if you don't wanna mess around with code, you can go to the Redirects option in cPanel, and do it easily from there.

Ah ok, thanks for the help, +Rep :)

Want to hide these adverts? Register an account for free!