The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect Problems

Discussion in 'General Discussion' started by Ejnash, Jul 7, 2003.

  1. Ejnash

    Ejnash Member

    Joined:
    Apr 29, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I host all of my sites on ejnash.com. One domain I host (addon domain) is bgnm.com, bgnm is on ejnash.com/bgnm. I setup a redirect so ejnash.com/bgnm/index.html (bgnm.com) would go to ejnash.com/bgnm/bgnm.html (bgnm.com/bgnm.html). If you go to ejnash.com/bgnm/index.html in the browser the redirect goes through as planned and it all works. If you type bgnm.com/index.html it does not redirect. It just executes the page. Any help would be greatly appreciated.

    cPanel.net Support Ticket Number:
     
  2. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    If you don`t want index.html to be seen why not add the redirect in the index.html page.


    <HTML>
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <TITLE></TITLE>
    <SCRIPT language="JavaScript">
    <!--HPB_SCRIPT_CODE_40
    function _HpbJumpURL(url)
    {
    if (url != '')
    {
    window.location = url;
    }
    }
    //-->
    </SCRIPT></HEAD>
    <BODY><SCRIPT language="JavaScript">
    <!--

    _HpbJumpURL('bgnm.html ');

    //-->
    </SCRIPT></BODY>
    </HTML>

    cPanel.net Support Ticket Number:
     
  3. Ejnash

    Ejnash Member

    Joined:
    Apr 29, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    its unfortunatly not that easy, I'm remaking the site in php, so I need the htaccess file to redirect all the people going to the .html extentions to the .php extentions. There are over 80 pages probably so making them all use a script instead of htaccess would be rediculous.

    cPanel.net Support Ticket Number:
     
  4. Ejnash

    Ejnash Member

    Joined:
    Apr 29, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    anyone have any help on this topic at all???????

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page