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 from one page to another

Discussion in 'General Discussion' started by bamm, Mar 3, 2005.

  1. bamm

    bamm Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Before I post my issue...I have searched the forum and found nothing so I apologize if I missed it.

    I am having a problem forwarding from one web page to another using the redirect script inside cpanel:

    while I can setup a redirect:

    http://adomain.com/page.asp to redirect to http://adomain.com/sub/page.php

    the redirects that I create:

    http://adomain.com/page.asp to redirect to http://adomain.com/shop/index.php?cPath=23_24 will not work...everything from the equal sign and forward is being ignored.

    Can anyone give me any help?

    Thanks,

    Bam
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Why don't you use .htaccess instead?
     
  3. bamm

    bamm Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    When you use the redirect script inside cpanel, that's where they are setup...all of them are setup inside an htaccess file. Only the ones that redirect to ?cPath= do not redirect.

    Thanks Andy for trying...any other suggestion(s)?

    Bamm
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Maybe cpanel is cutting off the .htaccess entry at the = sign. See what is in the .htaccess file. You may need to manually complete it.
     
    #4 PWSowner, Mar 3, 2005
    Last edited: Mar 3, 2005
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    In his htaccess, it shows index.php?cPath=23_24 with the ?, but when the page is accessed the ? is changed to %3f which keeps it from working. Can question marks not be used in the .htaccess file? How do you make it be treated like any other character?
     
  6. bamm

    bamm Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page