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.

htaccess redirection problems

Discussion in 'General Discussion' started by horrighs, Mar 8, 2003.

  1. horrighs

    horrighs Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Is there anyway to modify how cPanel writes the .htaccess files? I have a customer that does Affilate redirections. They basically setupa addon domain on there account and then tell it to redirect that domain to a affiliate encoded link.

    The probelm is cPanel uses the "RedirectMatch" directive like this:

    RedirectMatch .* http://listings.ebay.com/pool2/plistings/list/all/category20571/index.html?from=R4

    (note thats all on one line)

    If the htaccess file was setup like this:


    Redirect / http://listings.ebay.com/pool2/plistings/list/all/category20571/index.html?from=R4

    (note thats all on one line)


    basically the problem is the RedirectMatch directive has a problem with the "?" but Redirect does not.

    Ideally i would love for cPanel to fix this problem or if it is not a problem make a toggle so you could select which way to make the htaccess. but if its possible could i pay someone to make me a fix? :)
     
  2. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    One suggestion is to setup the .htaccess in the desired way then in Shell: chattr -i .htaccess -- which means, from now on, the file can only be changed manually.
     
  3. horrighs

    horrighs Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    But i am tring to keep the end user from having to go to the trouble of editing the file directly.
     
  4. parhelic

    parhelic Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Interested in this as well.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page