Jump to the post that solved this thread.
Not Solved My forum is different on two urls
#1
Not Solved
When I goto http://therlest.com/forum/ it displays all images and icons and works perfectly fine. When I goto http://www.therlest.com/forum/, it only shows some icons and replaces the ones it cannot find with squares. Please help!

When adding www. not everything shows up and it's like a different site. I need to finish this asap thank you! Smile
Reply
#2
Not Solved
Sometimes this happens using the following:

www.yourdomain.com
yourdomain.com (non-www)

It's because the browser thinks there is a cross domain issue.

To fix it, create (or add to an already existing .htaccess file) an .htaccess file with the following and save:

<FilesMatch "\.(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>

Place .htaccess file in forum root.
Find me here or at my new blog about MyBB, Web Design, SEO
My Services
MyBB Themes
Reply
#3
Not Solved
It still doesnt seem to work :|
Reply
#4
Not Solved
Redirect the www url permanently to non-www url with root .htaccess entry:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

That also protects against Google duplicate content.
Reply
#5
Not Solved
(2015-11-29, 06:05 PM)SvePu Wrote: Redirect the www url permanently to non-www url with root .htaccess entry:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

That also protects against Google duplicate content.
Thank you very much! +1
Reply
#6
Not Solved
(2015-11-29, 06:05 PM)SvePu Wrote: Redirect the www url permanently to non-www url with root .htaccess entry:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

That also protects against Google duplicate content.

This, use one or the other. There's really no need for both.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)