Advertisement:

Author Topic: Problem with www  (Read 126 times)

Offline Gorki

  • Newbie
  • *
  • Posts: 8
Problem with www
« on: December 07, 2017, 05:51:25 PM »
I have my forum page.

bad-lands.com

And i have 1 problem.
When someone join in forum without www page looks normal.
like this: hxxp:i.imgur.com/l0RRp0A.png [nonactive]

but when someone join in my forum with "www" page looks stupid.
like this: hxxp:i.imgur.com/zd8K853.png [nonactive]

How i can fix that?

Online Torngate

  • Semi-Newbie
  • *
  • Posts: 20
  • Gender: Male
    • Torngate on GitHub
    • Shadow Fleet
Re: Problem with www
« Reply #1 on: December 07, 2017, 05:57:42 PM »
I have my forum page.

bad-lands.com

And i have 1 problem.
When someone join in forum without www page looks normal.
like this: https://i.imgur.com/l0RRp0A.png [nofollow]

but when someone join in my forum with "www" page looks stupid.
like this: https://i.imgur.com/zd8K853.png [nofollow]

How i can fix that?

One thing you can do is find in your host (public_html) folder or wherever your root a file called .htaccess

Code: [Select]
#Force www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

but of course, replace the example.com with your site's code.

That will force WWW and your site will look normal.

At least, unless I'm sorely mistaken.
Site Administrator- Shadow Fleet Star Trek RPG

Offline Gorki

  • Newbie
  • *
  • Posts: 8
Re: Problem with www
« Reply #2 on: December 07, 2017, 06:18:52 PM »
Ohh finally last problem is fixed :)

Thanks man !