Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: FatRat on April 30, 2025, 07:40:35 AM

Title: Unable to verify referring URL. Please go back and try again.
Post by: FatRat on April 30, 2025, 07:40:35 AM
I am using a clean install of SMF (latest version).

I link to the forum from the index page of my site. The link is set up like mysite.com/smf

More often than not I get this error  Unable to verify referring URL. Please go back and try again.

Any ideas?
Title: Re: Unable to verify referring URL. Please go back and try again.
Post by: Sir Osis of Liver on April 30, 2025, 12:58:01 PM
.htaccess


# 301 REDIRECT HTTP TO HTTPS AND WWW TO NON-WWW
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
</IfModule>

Title: Re: Unable to verify referring URL. Please go back and try again.
Post by: FatRat on May 02, 2025, 05:48:32 AM
Thanks for that. Is that all that needs to be in the htaccess file? The issue has resolved for some users but not all.
Title: Re: Unable to verify referring URL. Please go back and try again.
Post by: Sir Osis of Liver on May 02, 2025, 01:14:22 PM
That should fix it.  Different browsers will sometimes get different results.  You should ask all users to clear their browsers.  If that doesn't work change copokie name, that will logout all users and they'll have to login to get new cookie.