Forums / General Questions / Help with Google Varification file

Help with Google Varification file

Results 1 to 12 of 12
29 Mar 2014, 18:58
#1
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Help with Google Varification file

Hello:

I was working with my Google Webmaster Tools and I needed to varify ownership. I downloaded the varification file and placed it here:

/includes/templates/my_template/common/html_header.php

When I attempted to confirm a successful upload by visiting http://www.petluxuryboutique.com/google2d93bcf82623c047.html

It says "Page Not Found and takes to mo my xml map. I don't know what I did wrong. Did I upload it to the wrong file???

Help is appreciated,

Thank you,

Silver
29 Mar 2014, 19:03
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Help with Google Varification file

You need to place the file in the root of the shop
29 Mar 2014, 19:09
#3
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Re: Help with Google Varification file

Thank you but I'm not sure where that is. Could you tell me the file path?

Silver
29 Mar 2014, 19:14
#4
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Posts:
6,940
Plugin Contributions:
24

Re: Help with Google Varification file

SilverHD:

Thank you but I'm not sure where that is. Could you tell me the file path?

Silver


It is the same directory that holds your zen cart files, so you will see the folders for cache, editors, email, includes, logs, etc.

Thanks,

Anne
29 Mar 2014, 19:17
#5
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Re: Help with Google Varification file

Hi Anne:

I'm still not sure where this is. I have looked via FTP and I don't even see anything marked "public_html" or www. Should I be accessing this through the CPanel? I guess I still don't really know what I am looking for??

Silver
29 Mar 2014, 19:40
#6
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Help with Google Varification file

in the root of the shop you should see files like index.php , and folders like includes, images, YOUR_ADMIN
29 Mar 2014, 20:08
#7
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Re: Help with Google Varification file

Yes, does this file go into index-html? Or do I need to do this through the CPanel?

Silver
29 Mar 2014, 20:49
#8
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Re: Help with Google Varification file

I was finally able to get the Google verification code into the root of my website but it still would not verify. I kept getting "Page Not Found" as I stated previously. I did find a way to make this effort successful for anyone who has this problem in the future.

On the same page for the varification, Google has a tab called Alternate. If you click on that it will give you several choices to verify. I chose "meta-tag." Again, Google gives you a meta-tag with their code. You need to go here:

/includes/templates/your_template/common/html_header.php

You need to place the tag within the <head> here <head/> and that should do it. When you have done that, the next step is to click verify within the Webmaster tools page you are on, and hopefully, it will say that you have sucessfully verified your site!

Thanks to all who helped. I appreciate it!

Have a Great Weekend,

Silver
30 Mar 2014, 14:56
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Help with Google Varification file

SilverHD:

I was finally able to get the Google verification code into the root of my website but it still would not verify. I kept getting "Page Not Found" as I stated previously. I did find a way to make this effort successful for anyone who has this problem in the future.

On the same page for the varification, Google has a tab called Alternate. If you click on that it will give you several choices to verify. I chose "meta-tag." Again, Google gives you a meta-tag with their code. You need to go here:

/includes/templates/your_template/common/html_header.php

You need to place the tag within the <head> here <head/> and that should do it. When you have done that, the next step is to click verify within the Webmaster tools page you are on, and hopefully, it will say that you have sucessfully verified your site!

Thanks to all who helped. I appreciate it!

Have a Great Weekend,

Silver


Problem with this method is that if you change templates you will also have to transfer that verification code.

Like to point out that you obviously know how to get to:
/includes/templates/your_template/common/html_header.php

The root of your store is when you move backwards (up, left, whatever) to just /

It is also (by ftp) the location identified in your includes/configure.php associated with DIR_FS_ type defines.

There are a number of ways as the store owner to determine/identify this "location" let alone from all of the suggestions provided by others above.
30 Mar 2014, 16:18
#10
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Re: Help with Google Varification file

mc12345678:

Hey, how are you! Just wanted you to know that I tried placing the varification code here / , which is public-html, as you suggested above and Google didn't recognize it. So you can also place it at the includes/configure.php file? What is funny is that a long time ago, in the FrontPage days, the root was your index page!

Thanks again,

Silver
30 Mar 2014, 16:45
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Help with Google Varification file

SilverHD:

mc12345678:

Hey, how are you! Just wanted you to know that I tried placing the varification code here / , which is public-html, as you suggested above and Google didn't recognize it. So you can also place it at the includes/configure.php file? What is funny is that a long time ago, in the FrontPage days, the root was your index page!

Thanks again,

Silver


No, can not place it in the configure.php file found in the includes file.

Google gives multiple methods of incorporating the verification code. One is by including in the header which is the mthod you described above. Another is by creating a uniquely named file (they tell you what to name it) and placing the file in the root folder. That file is to also contain specific information stated by google. I think there is one or more other options, but I forget.

Now all that said the root folder may not be the public_html folder depending on how all things are setup on theserver forthe site(s) in question. For example if there is a sub folder off of public_html named site1 and it is in that folder that all of the ZC files applicable to site1 are stored, then the root of site1 is actually the public_html/site1 folder. Yes, the root is where index.php is at so there is no change there either.

It is important though that you not mix the directions from google, pick one method and go straight through with it.

I wanted to point out that if you do decide to change to a different template, your google incorporated code will not automatically transfer with it installed the way applied. It is also why everyone else was pushing for the code to be properly incorporated into the store's root so that the chosen template wouldn't matter related to the google code.

The discussion of the configure.php file was to help you understand the pieces and parts that are in ZC as earlier in this thread you stated you didn't know where the public_html folder was on your server or maybe it was that you couldn't find it or something similar. I at no time said that the code could be installed in the configure.php file.
30 Mar 2014, 16:55
#12
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Posts:
563
Plugin Contributions:
0

Re: Help with Google Varification file

No problem. I didn't mean to say that you did. Like I said, I placed it in the public_html but apparently that isn't the root because Google didn't recognize it.

Thanks for your help,

Silver