If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Unexpected .htaccess redirect following signing of guestbook  XML
Forum Index » Advanced Guestbook Forum
Author Message
robharrisva
Beginner

Joined: 07/09/2006 09:02:49
Messages: 9
Location: Virginia USA
Offline

It appears that after adding .php files in the RewriteRule of my .htaccess file to prevent SPAMMERS from hotlinking directly to my addentry.php file, legitimate visitors are now getting redirected to the URL (mydomain/403.shtml) specified in the RewriteRule, after getting the "Thank you" message through the success.php file, rather than back to the guestbook. I am generating the rules for the RewriteEngine via the Hot Link Protection GUI of cPanel. However, I have looked at the .htaccess file directly through a text editor. I am running Advanced Guestbook 2.3.3.

I have searched this and other forums and played with it for several hours now without success. I have confirmed that by removing the Rewrite rules, the problem goes away. I also tried adding http://127.0.0.1 as an allowable URL to no avail.

Any advice or suggestions would be greatly appreciated. Thanks.

Think globally, Act locally
robharrisva
Beginner

Joined: 07/09/2006 09:02:49
Messages: 9
Location: Virginia USA
Offline

After additional troubleshooting, it appears that the problem was due to the failure of cPanel to include "RewriteCond %{HTTP_REFERER} !^$" after the "RewriteEngine on" command in the .htaccess file. I added it manually. I have now tested it successfully several times.

Thanks just the same.

Think globally, Act locally
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum