Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to disable 'WWW' stripping?
nuhi
New
Hi,
I wonder if it's possible, even by editing PHP, to make Vanilla detect if the host is opened with 'WWW.domain.com' or 'domain.com'?
Now it always strips WWW in all links and resource fetching, even if the site was opened with WWW.
This introduces issues with CDN at the moment, I would like to specify at least statically to go with or without WWW, if it cannot be automatic.
I searched everywhere and cannot find the info.
Tried stripping the root via config file and specifying manually root as the domain name, but that is intended for directories and it didn't work.
Thanks in advance.
0
Comments
not sure if this will help or even has any impact.
http://css-tricks.com/snippets/htaccess/www-no-www/
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yes, .htaccess is the way to go, as vanilla is not doing any www stripping.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thanks guys, that was helpful as you confirmed that it's not in the code, nor a common issue.
I did look before into .htaccess, and as far as I know .htaccess can change a client's visit to the site, not the actually generated links on the forum, and all of them are without www, while the rest of the site was already started via www and had www in its links.
And now the crucial bit of info, I am using Vanilla as an embedded forum on the Wordpress site, the culprit was
"Forum Integration - Forum Code" option, the embed.js path, if that line doesn't have www, the rest of the forum doesn't as it seems to draw the root from it.
<script type="text/javascript" src="http://www.domain.com/forum/js/embed.js"></script>
There, I hope it helps another noob like me one day.