+ Reply to Thread
Results 1 to 6 of 6

Thread: redirecting index's

  1. #1
    swirly's Avatar
    swirly is offline x10 Elder swirly is an unknown quantity at this point
    Join Date
    Jul 2005
    Location
    NC
    Posts
    965

    redirecting index's

    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.

  2. #2
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: redirecting index's

    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/");
    ?>

  3. #3
    Cynical's Avatar
    Cynical is offline Lord Of The Keys Cynical is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Massachusetts, USA
    Posts
    1,746

    Re: redirecting index's

    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.

  4. #4
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: redirecting index's

    Or make a redirect in cPanel. :-)

  5. #5
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: redirecting index's

    or:

    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=yoursite">

  6. #6
    bigguy's Avatar
    bigguy is offline Retired bigguy is an unknown quantity at this point
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    5,426

    Re: redirecting index's

    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:

    PHP Code:
    <?php
    //Redirect browser
    header("Location: http://sub.yourdomain.com");
    ?>
    EDIT: I guess its the samething as the //redirect browser is commented out. Sorry bout that.
    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

+ Reply to Thread

Similar Threads

  1. Redirecting?
    By butter_wing in forum Feedback and Suggestions
    Replies: 2
    Last Post: 11-13-2006, 10:14 PM
  2. Page isn't redirecting properly
    By omnirom in forum Free Hosting
    Replies: 8
    Last Post: 07-28-2006, 09:59 PM
  3. redirecting...
    By TarinC in forum Scripts & 3rd Party Apps
    Replies: 31
    Last Post: 12-25-2005, 11:10 AM
  4. Subdomain not redirecting to index.htm
    By nigelwong in forum Free Hosting
    Replies: 2
    Last Post: 11-09-2005, 01:45 PM
  5. Redirecting Problem
    By lostillusions in forum Free Hosting
    Replies: 1
    Last Post: 05-06-2005, 12:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers