News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Unable to verify referring URL. Please go back and try again.

Started by FatRat, April 30, 2025, 07:40:35 AM

Previous topic - Next topic

FatRat

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 [nofollow]

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

Any ideas?

Sir Osis of Liver

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

When in Emor, do as the Snamors.
                              - D. Lister

FatRat

Thanks for that. Is that all that needs to be in the htaccess file? The issue has resolved for some users but not all.

Sir Osis of Liver

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.
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: