miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
The Other miniBB Support Forums / The Other /  
 

Removal of www. from $main_url=

 
Author Steve Shaw
Partaker
#1 | Posted: 28 May 2024 18:32 
Hi Paul,

I've been cleaning up our company website, and dealing with canonical url issues.
In doing this, we've stripped out the use of the leading www. from all urls.

But, the log-in to the forums stopped working.
What I found is the «$main_url='https://...» entry would not work when the www. was removed.

So: $main_url='https://www.lightillusion.com/forums'; works
But: $main_url='https://lightillusion.com/forums'; doesn't.

Am I missing something?
(It is most likely my lack of knowledge/understanding...)
I have set the htaccess file to redirect 'www.' to 'non-www.', etc.

Steve

Author Steve Shaw
Partaker
#2 | Posted: 28 May 2024 19:01 
Ok — ignore me!

It was my htaccess file within the Forums folder that was the issue.
I had forgotten to change its contents for the dropping of www.

Steve

Author Paul
Lead Developer 
#3 | Posted: 28 May 2024 19:49 
Steve Shaw:
I had forgotten to change its contents for the dropping of www.
I suppose you just were having redirection from non-www to www domain set up in .htaccess, so yes — now you should provide the opposite code, i.e. redirect from www to non-www. This is a must to avoid duplicates in search engine.

Hopefully you did it right!

The Other miniBB Support Forums / The Other /
 Removal of www. from $main_url=
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑