Help with .htaccess file

Discussion in 'Apache' started by idev, Jun 7, 2011.

  1. #1
    Hello members of DP,

    i wonder if someone can help,

    I have a shopping cart script which uses FollowSymlinks in a .htaccess file
    to generate dynamic urls for the product pages and the .htaccess file
    is located in the root directory.

    the problem im having is when
    trying to add a additional payment processor code to the shopping cart script
    in the admin area.

    When adding the payment processor form code to the merchant section in the admin area, it seems the .htaccess file is conflicting with the external payment processor form code causing the form not to render because the .htaccess file is adding an additional slashes to the payment processor form code.

    This is how the payment processor form code is rendering on the site

    Payment processor form code
    
    <form action=\"https://sci.libertyreserve.com/en\" method=\"GET\">
    <input type=\"hidden\" name=\"lr_acc\" value=\"U6016045\">
    <input type=\"hidden\" name=\"lr_amnt\" value=\"0.01\">
    <input type=\"hidden\" name=\"lr_currency\" value=\"LRUSD\">
    <input type=\"hidden\" name=\"lr_success_url\" value=\"http://www.myshop.com/thanks.php\">
    <input type=\"hidden\" name=\"lr_success_url_method\" value=\"POST\">
    <input type=\"hidden\" name=\"lr_fail_url\" value=\"http://www.myshop.com/\">
    <input type=\"hidden\" name=\"lr_fail_url_method\" value=\"POST\">
    <input type=\"submit\" />
    </form>
    
    Code (markup):
    Notice all the additional slashes ? this is causing the form not to render or
    to work !

    Now i know this .htaccess file has something to do with the problem
    but i don't have a clue on how to resolve this problem.

    .htacces file
    
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^(.*)\.html$ viewdetails.php?itemno=$1 [NC]
    
    Code (markup):
    Thank you
     
    Last edited: Jun 7, 2011
    idev, Jun 7, 2011 IP