ok i have a cms i want the index of that to be my main index page...how can i like redirect it into the folder that it is in?
ok i have a cms i want the index of that to be my main index page...how can i like redirect it into the folder that it is in?
Don't go to bed angry, stay awake and plot revenge.
create a file called index.php and put it into the public_html folder
in index.php u should have:
PHP Code:<?php
header("Location: http://youraccount.x10hosting.com/loacationofcms/");
?>
You could use JavaScript too:
<script language="javascript">window.location="http://www.cynicalgames.com";</script>
Seven: This rule is so underrated, keep your family and business completely separated.
Or make a redirect in cPanel. :-)
or:
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=yoursite">
Is this not the way the redirect should look ? If it doesnt matter thats cool but this is how I use a redirect in a index.php file:
EDIT: I guess its the samething as the //redirect browser is commented out. Sorry bout that.PHP Code:<?php
//Redirect browser
header("Location: http://sub.yourdomain.com");
?>
Last edited by bigguy; 03-12-2006 at 12:07 AM.
P.C. Tweakr - For all your computer and internet support
P.C. Tweakr - For all your SMF help and support