ERR_NAME_NOT_RESOLVED

26 views
Skip to first unread message

Tara Whitie

unread,
Sep 11, 2015, 9:52:32 PM9/11/15
to web-design...@googlegroups.com
Hi all

This is an error on Chrome when you don't use the www prefix.....

HELP PLEASE ---  HOW DO I RESOLVE THIS?????


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/

Eben Hale

unread,
Sep 11, 2015, 10:00:01 PM9/11/15
to web-design...@googlegroups.com
Hi Tara

You could try a .htaccess rewrite if your server is apache.

Something like this


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



Eben Hale
0425 294 819
hale...@gmail.com



--
You received this message because you are subscribed to the Google Groups "Web Designers Blue Mountains TAFE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-designers-bm...@googlegroups.com.
To post to this group, send email to web-design...@googlegroups.com.
Visit this group at http://groups.google.com/group/web-designers-bmtafe.
For more options, visit https://groups.google.com/d/optout.

Tara Whitie

unread,
Sep 11, 2015, 10:05:42 PM9/11/15
to web-design...@googlegroups.com
I cant open the .htaccess file.....


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 11:59:31 +1000
Subject: Re: [webdesign] ERR_NAME_NOT_RESOLVED
To: web-design...@googlegroups.com

Tara Whitie

unread,
Sep 11, 2015, 10:17:56 PM9/11/15
to web-design...@googlegroups.com
Ok I now have access to the .htaccess file it has this in it


AuthType Basic
AuthName "Password Required"
AuthUserFile /home/web_plowright/web/www.plowright.com.au/webstats/.htpasswd
Require valid-user

So what do I do now?


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 11:59:31 +1000
Subject: Re: [webdesign] ERR_NAME_NOT_RESOLVED
To: web-design...@googlegroups.com

Eben Hale

unread,
Sep 11, 2015, 10:24:49 PM9/11/15
to web-design...@googlegroups.com
That code is to password protect the webstats section of the site.

First, make a backup of the original unedited htaccess file, just inc ase something goes wrong

Then paste the code in my first email below what's there.

Take care with htaccess files as a small error can give you a white screen of death.



Eben Hale
0425 294 819
hale...@gmail.com



Tara Whitie

unread,
Sep 11, 2015, 10:44:30 PM9/11/15
to web-design...@googlegroups.com

Dumb question do I replace the example.com with his domain name?


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 12:24:18 +1000

Eben Hale

unread,
Sep 11, 2015, 10:55:28 PM9/11/15
to web-design...@googlegroups.com
Yep



Eben Hale
0425 294 819
hale...@gmail.com



Tara Whitie

unread,
Sep 11, 2015, 10:57:33 PM9/11/15
to web-design...@googlegroups.com
yes common sense prevailed and yes it worked...thanks Eben, I owe you so many beers...lol......


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 12:54:58 +1000

Eben Hale

unread,
Sep 11, 2015, 10:58:44 PM9/11/15
to web-design...@googlegroups.com
Glad you got it sorted :)

On 9/12/15, Tara Whitie <madblon...@hotmail.com> wrote:
> yes common sense prevailed and yes it worked...thanks Eben, I owe you so
> many beers...lol......
>
> Kind regards
>
> Tara Whitie
> :: 02 4784 1163
> :: 0449 684 588
> :: http://tarawhitie.com/
>
>
>
> From: hale...@gmail.com
> Date: Sat, 12 Sep 2015 12:54:58 +1000
> Subject: Re: [webdesign] ERR_NAME_NOT_RESOLVED
> To: web-design...@googlegroups.com
>
> Yep
>
> Eben Hale
> 0425 294 819
> hale...@gmail.com
>
>
>
> On Sat, Sep 12, 2015 at 12:44 PM, Tara Whitie <madblon...@hotmail.com>
> wrote:
>
>
>
>
> Dumb question do I replace the example.com with his domain name?
>
> Kind regards
>
> Tara Whitie
> :: 02 4784 1163
> :: 0449 684 588
> :: http://tarawhitie.com/
>
>
>
> From: hale...@gmail.com
> Date: Sat, 12 Sep 2015 12:24:18 +1000
> Subject: Re: [webdesign] ERR_NAME_NOT_RESOLVED
> To: web-design...@googlegroups.com
>
> That code is to password protect the webstats section of the site.
> First, make a backup of the original unedited htaccess file, just inc ase
> something goes wrong
> Then paste the code in my first email below what's there.
> Take care with htaccess files as a small error can give you a white screen
> of death.
>
> Eben Hale
> 0425 294 819
> hale...@gmail.com
>
>
>
> On Sat, Sep 12, 2015 at 12:17 PM, Tara Whitie <madblon...@hotmail.com>
> wrote:
>
>
>
> Ok I now have access to the .htaccess file it has this in it
>
>
> AuthType Basic
> AuthName "Password Required"
> AuthUserFile
> /home/web_plowright/web/www.plowright.com.au/webstats/.htpasswd
> Require valid-user
>
> So what do I do now?
>
>
> Kind regards
>
> Tara Whitie
> :: 02 4784 1163
> :: 0449 684 588
> :: http://tarawhitie.com/
>
>
>
> From: hale...@gmail.com
> Date: Sat, 12 Sep 2015 11:59:31 +1000
> Subject: Re: [webdesign] ERR_NAME_NOT_RESOLVED
> To: web-design...@googlegroups.com
>
> Hi Tara
> You could try a .htaccess rewrite if your server is apache.
> Something like this
>
> #Force non-www:RewriteEngine onRewriteCond %{HTTP_HOST} ^www\.example\.com
> [NC]RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
>

Tara Whitie

unread,
Sep 12, 2015, 1:22:02 AM9/12/15
to web-design...@googlegroups.com
And doh again, it's not working, here's the .htaccess file

HELP HELP HELP


AuthType Basic
AuthName "Password Required"
AuthUserFile /home/web_plowright/web/www.plowright.com.au/webstats/.htpasswd
Require valid-user


#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.plowright\.com.au [NC]
RewriteRule ^(.*)$ http://plowright.com.au/$1 [L,R=301]


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/



> Date: Sat, 12 Sep 2015 12:58:44 +1000
> Subject: Re: [webdesign] ERR_NAME_NOT_RESOLVED
> From: hale...@gmail.com
> To: web-design...@googlegroups.com

Eben Hale

unread,
Sep 12, 2015, 1:27:16 AM9/12/15
to web-design...@googlegroups.com
You need to have a \ before all . you were missing it before the .au

Try this

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.plowright\.com\.au [NC]
RewriteRule ^(.*)$ http://plowright.com.au/$1 [L,R=301]



Eben Hale
0425 294 819
hale...@gmail.com



Tara Whitie

unread,
Sep 12, 2015, 1:31:01 AM9/12/15
to web-design...@googlegroups.com
Nope here is the screen that I get

http://plowright.com.au/



Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 15:26:45 +1000

Eben Hale

unread,
Sep 12, 2015, 1:34:51 AM9/12/15
to web-design...@googlegroups.com



Eben Hale
0425 294 819
hale...@gmail.com



Eben Hale

unread,
Sep 12, 2015, 1:35:18 AM9/12/15
to web-design...@googlegroups.com
You might need to clear your browser cache



Eben Hale
0425 294 819
hale...@gmail.com



Tara Whitie

unread,
Sep 12, 2015, 1:36:42 AM9/12/15
to web-design...@googlegroups.com

yep i've cleared everything in both firefox and chrome.....ggrrrrrrrr


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 15:34:21 +1000

Tara Whitie

unread,
Sep 12, 2015, 1:37:44 AM9/12/15
to web-design...@googlegroups.com

It works on a phone tho...hehehehehe


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: madblon...@hotmail.com
To: web-design...@googlegroups.com
Subject: RE: [webdesign] ERR_NAME_NOT_RESOLVED
Date: Sat, 12 Sep 2015 15:36:39 +1000

Eben Hale

unread,
Sep 12, 2015, 2:01:21 AM9/12/15
to web-design...@googlegroups.com
Sorry Tara, I got it switched around, try this

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



Eben Hale
0425 294 819
hale...@gmail.com



Tara Whitie

unread,
Sep 12, 2015, 6:19:27 PM9/12/15
to web-design...@googlegroups.com
Morning Eben

And no luck.....firefox seems to by nature put the www but chrome is still not doing it.....should the .htaccess file remain in the webstats folder or should I place it somewhere else?


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sat, 12 Sep 2015 16:00:50 +1000

Eben Hale

unread,
Sep 12, 2015, 7:16:31 PM9/12/15
to web-design...@googlegroups.com
Create a new .htaccess file in the website root folder and remove the code that I gave you from the thaccess file in the webstats folder and put it in the new file in the websitre root. The htaccess file in the webstats folder should only contain the original code for the password protect.



Eben Hale
0425 294 819
hale...@gmail.com



Harris Ingram

unread,
Sep 12, 2015, 7:21:32 PM9/12/15
to web-design...@googlegroups.com
.htaccess should be in the public_html, wwww, web accessible directory of a site where you're base index home page is stored. Sub folders will then inherit from that.  With hosts like Dreamhost it will be something like the plowright.com.au directory in your root user folder.



From: madblon...@hotmail.com
To: web-design...@googlegroups.com
Subject: RE: [webdesign] ERR_NAME_NOT_RESOLVED
Date: Sun, 13 Sep 2015 08:19:25 +1000

Tara Whitie

unread,
Sep 12, 2015, 7:36:43 PM9/12/15
to web-design...@googlegroups.com

Ok I have done what you suggested but chrome is still not adding the www

Maybe I'll ask client for c-panel login and point the domain name to it......I dont know!!!!


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sun, 13 Sep 2015 09:16:00 +1000

Tara Whitie

unread,
Sep 12, 2015, 7:42:34 PM9/12/15
to web-design...@googlegroups.com
Yep I have put the .htaccess file with the code that Eben made etc in the public html and still chrome is not adding the www

So still getting the error message on page......


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




To: web-design...@googlegroups.com
Subject: RE: [webdesign] ERR_NAME_NOT_RESOLVED
Date: Sun, 13 Sep 2015 09:21:30 +1000

Eben Hale

unread,
Sep 12, 2015, 8:05:35 PM9/12/15
to web-design...@googlegroups.com
HeyTara

Try this code instead, put it in the htaccess file thats in the public_html folder

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


If it doesn't work there is a slight chance that the host does not have mod_rewrite enabled, you may need to confirm this with them.





Eben Hale
0425 294 819
hale...@gmail.com



Tara Whitie

unread,
Sep 13, 2015, 12:20:40 AM9/13/15
to web-design...@googlegroups.com

No luck, I'll have to ask client for hosting details and contact them....thanks for all your help, much appreciated ...


Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sun, 13 Sep 2015 10:05:04 +1000

Tara Whitie

unread,
Sep 13, 2015, 1:26:42 AM9/13/15
to web-design...@googlegroups.com

Also too this site was built 20 yrs ago...lol....I've just recently taken it over, it will get a full re-build in a couple of months but client needs me at the moment to just update images etc....





Kind regards

Tara Whitie
:: 02 4784 1163
:: 0449 684 588
:: http://tarawhitie.com/




From: hale...@gmail.com
Date: Sun, 13 Sep 2015 10:05:04 +1000
Reply all
Reply to author
Forward
0 new messages