solved How to set up hostnames for google

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
I got this error message in my google analytics "You have 1 unresolved issue: Redundant Hostnames"
and it tells me to set up a 301 redirect but when i look up instructions on how to do this like on this post here https://blog.properhost.com/2014/12/15/80/how-to-solve-the-redundant-hostname-warning-in-google-analytics it says i need access to the .htaccess file at the root of your site: ? any idea how i get to this if possible ?
updated by @zachary-moonshine: 06/20/17 04:09:29PM
brian
@brian
7 years ago
10,148 posts
This is not something to do with JR - does it tell you WHAT domain it thinks is redundant?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
its telling me both? www.metaldevastationradio.com and metaldevastationradio.com ?
Capture.PNG.png
Capture.PNG.png  •  29KB

gary.moncrieff
gary.moncrieff
@garymoncrieff
7 years ago
865 posts
Just guessing here but maybe you have manually coded links that go to both domains somewhere on the site, ie you access your site at www. but site url is http://sitename. Like I said just a complete guess.
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
the code it tells me to add to the htaccess file at the root seems simple enough to do but i dont see that file in ftp
updated by @zachary-moonshine: 03/18/17 07:17:40AM
brian
@brian
7 years ago
10,148 posts
the .htaccess file is a "hidden" file, so you have to make sure your SFTP client is set to show hidden files.

Modifying the .htaccess file makes it really easy to break your site as well, so I can change it for you.

Do you want your site to always use the "www" or always NOT use the "www"?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
i dont know which one do you think would be better
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
i guess without would be better since its shorter
michael
@michael
7 years ago
7,714 posts
preference. we use https://www.jamroom.net/
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
cool if its just preference then metaldevastationradio.com would be best since its long as it is i think most of the people that we work with type it without the www anyway