Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Forbidden

You 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.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...