Skip to main content
Topic: "Referring URL" Revisited (Read 305 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

"Referring URL" Revisited

To resurrect a 6 (7?)  year old discussion..  https://www.elkarte.net/community/index.php?topic=1832.0
 
Its something @TE needs to tweak in the site config file, in the server section, along the lines of

Code: [Select]
server_name elkarte.net;
return 301 $scheme://www.elkarte.net$request_uri;


I have just encountered that as well - makes all the difference in the world if the "referring url" is https://siteurl.com vs. https://www.siteurl.com.

Is the server_name singular exclusive or can it be configured for either/or?
 
I have a bunch of old guys (and I resemble that remark) who barely know what a bookmark is, much less how to change it if they have the wrong URL listed (and several do). I would much rather have the login handle either case than trying to teach my lazy old dogs "new tricks".
__________________________________________________________________________
// Deep inside every dilemma lies a solution that involves explosives //

Re: "Referring URL" Revisited

Reply #1
Not sure what hosting you are using, but most have a redirect setting of non www to www or something like that in their control panel.
That old post was for Nginx which is the webserver we use, and there is a config option to redirect bla.com to www.bla.com
Be safe, Be kind, Happy Programing

Re: "Referring URL" Revisited

Reply #2
Not sure what hosting you are using, but most have a redirect setting of non www to www or something like that in their control panel.
That old post was for Nginx which is the webserver we use, and there is a config option to redirect bla.com to www.bla.com

Aye, thanks for the quick reply, Spuds .... and I have that set...  you can get to the forum login page either https://bla.com/forum/ or https://www.bla.com/forum/, but if you use the latter, you get the "Unable to verify referring URL. https://www.bla.com/forum" error when logging in.

Change the URL in the address bar to https://bla.com/forum/ and it's all good.

I'm hoping there's a way to make EA happy with either url..


Never mind, I figured out what you were telling me, I found the server redirect configuration and set a server redirect on that page. 

No matter how hard I try, I learn something new every day.  Thanks muchly..
__________________________________________________________________________
// Deep inside every dilemma lies a solution that involves explosives //