Closed Thread
Results 1 to 6 of 6

Thread: Cpanel Redirect problem

  1. #1
    BigEmmaFanz is offline x10 Sophmore BigEmmaFanz is an unknown quantity at this point
    Join Date
    May 2005
    Posts
    116

    Cpanel Redirect problem

    Odd, in cpanel's redirect function/service... It allows us to redicect a specific page to another right?

    like for example, my account is "emwatson.x10hosting.com"

    They have there http://emwatson.x10hosting.com/ [_________] Where we insert what we want as a redirect point and then another box to "where we want to redirect" visitors to.

    So I insert "index.php" cause I wanna change the layout of my site and don't want people entering the site at the moment.

    Here's where the problem starts... It also somehow redirects ALL "index.php"s on my subdomains. Which is obviously what I don't want.

    Any thoughts?
    http://<a href="http://</font>&#91;url="...l.net</a> </a>"Emma Watson Central | Your Fav. Emma Watson Fan Site!

  2. #2
    mattspec's Avatar
    mattspec is offline x10 Elder mattspec is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Kitchener, Ontario, Canada
    Posts
    693

    Re: Cpanel Redirect problem

    make an index page that uses a javascript redirect code?




  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: Cpanel Redirect problem

    The redirect function is for using directories to redirect, not pages.
    Seven: This rule is so underrated, keep your family and business completely separated.

  4. #4
    BigEmmaFanz is offline x10 Sophmore BigEmmaFanz is an unknown quantity at this point
    Join Date
    May 2005
    Posts
    116

    Re: Cpanel Redirect problem

    Sorry Cynical but can you elaborate? I don't understand...
    http://<a href="http://</font>&#91;url="...l.net</a> </a>"Emma Watson Central | Your Fav. Emma Watson Fan Site!

  5. #5
    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: Cpanel Redirect problem

    Sorry its been a few days...

    What I mean is you use the redirect so when you enter your URL in your address bar, you put a directory name (your redirect) at the end and it will redirect to the page you tell it to. For example, a good redirect would be something like "fish" or "kaloobja", not "wtf.php".

    Good redirect: http://emwatson.x10hosting.com/thisisagoodredirect
    Bad redirect: http://emwatson.x10hosting.com/thisi...ilikeclams.php

    Hope that helps .
    Seven: This rule is so underrated, keep your family and business completely separated.

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

    Re: Cpanel Redirect problem

    At the top of index.php add:

    PHP Code:
    <?php

    $page 
    'Page you want to redirect to.';
    header('Location: '$page);

    ?>

Closed Thread

Similar Threads

  1. Problem in Cpanel / phpMyAdmin
    By splinter in forum Free Hosting
    Replies: 1
    Last Post: 11-20-2006, 07:57 AM
  2. Is it me? cPanel Problem
    By Zenax in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 10-04-2006, 08:23 AM
  3. Cpanel Problem
    By Akkarin in forum Free Hosting
    Replies: 7
    Last Post: 07-18-2005, 01:52 PM
  4. A Problem With Cpanel
    By Articz in forum Free Hosting
    Replies: 13
    Last Post: 05-04-2005, 01:06 PM
  5. cPanel Problem
    By CHATtalk in forum Free Hosting
    Replies: 2
    Last Post: 04-30-2005, 03:28 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