Irin Posted November 3, 2008 Posted November 3, 2008 Hello, I have a problem with "Customer Survey" contribution by Soundman01. When I click a link to survey from email (looks like this: http://store.com/survey.php?&email=val...;order_num=622), I get ForbiddenYou don't have permission to access /survey.php on this server. If I enter just http://store.com/survey.php in browser, the page loads fine and the message says: To prevent tampering, the survey links an order number with an order email. The values entered are not valid Please check your email confirmation for a valid link to your custom survey page. Thank you! I checked the survey.php and it has Read permission to all and Write to Owner. Why is the page with a valid email and order number Forbidden? Any help will be appreciated. Thanks. Quote
Irin Posted November 3, 2008 Author Posted November 3, 2008 With the help of my hosting provider, I found out that the problem is in the .htaccess file. Specifically, the rewrite rule is causing the problem: RewriteCond %{QUERY_STRING} @ [NC] Nick V: RewriteRule ^ - [F] Since the link with an e-mail address does have an @ symbol, that rewrite rule matches and sends a Forbidden page. Unfortunately, I'm not very strong in rewrite rules. Is there any way I can save this rule except for when accessing that page? Any help will be appreciated. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.