solved How to redirect www to non-www on Jamroom

alt=
Ekwe
@ekwe
10 years ago
212 posts
How to redirect www to non-www for jamroom. My site are coming out with duplicate links on search engines
updated by @ekwe: 11/27/14 07:10:46PM
brian
@brian
10 years ago
10,148 posts
This is not done with Jamroom - you need to properly setup your .htaccess file. Add these lines below the "RewriteEngine On" line:

# HTTP
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{HTTP_HOST} ^www.\yourdomain\.com [NC]
RewriteRule .? http://yourdomain.com%{REQUEST_URI} [R=301,L]

Change "yourdomain.com" to your actual domain and make sure the domain in data/config/config.php matches. Reset caches and you should be set.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
Ekwe
@ekwe
10 years ago
212 posts
Thanks alot working now.

Tags