...

View Full Version : Help with FollowSymlinks ?



inta74
06-07-2011, 11:36 PM
Hello members of CF,

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>

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]


Thank you

Inigoesdr
06-08-2011, 04:08 AM
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.

...

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.


Nope. That .htaccess file is not modifying your page output. The cause is almost certainly poorly written PHP.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum