Place the files in the root folder of Blogger

This article explains the problems, and options, for placing a file in the “root directory” of your Blogger blog.

If you use some non-Google products to enhance your Blog, sometimes they will tell you put a file in your root directory. They may also tell you to use an FTP tool to do this.

Sometimes this happens when a product also gives you a code install it on your blog This approach is used when the code is written for websites in general rather than specifically to work with Blogger: putting the useful files in a place relative to the root directory makes it much easier to move a website from a test address to the live one, so it’s a common approach outside of Blogger.

Or maybe the other tool was designed to verify that you own the website in this way, instead of asking you to change the code of the website itself.

How to add a file to the root directory of your blog

The short answer for Blogger users is “Sorry, you can’t do that”.

The long answer is always no: “There is no way to do this, but see the rest of this article for an explanation of why, and some workaround suggestions.”

Why not? Every other website tool allows me to do this.

Home - cpg1.5.x demo 1287551599033
Posts: Blogger tool for management
the content on our blogs

If you are smart, and have a lot of time, You can make a website with just a text editor (eg notpad), a graphics program and ftp software which allows you to put files in the right places on the computer that is connected to the Internet.

Tools like Dreamweaver take away a lot of the time work, and some of the need for intelligence. But you still need to know a lot about the internet to do things in a way that makes a good website.

Content management systems it also makes this easier: they let a technically minded person do the work to make the website, and give authors/artists/editors/content creators simpler tools to use that allow them to put “stuff” (that is, the content) on the website, without having to worry about the details of how it works.

Blogger is a (very simple) website content management system, it creates our web pages for us based on the data we put in certain places. Administrators can set and change the theme, other peoplefor instance authors simply make posts.

When we use Blogger, the main way we change the data on our web pages use Blogger software.

Some articles in the places or gadgets can be changed with other software, for example Google Docs, as long as they have been installed with that other software in the first place. But – key point – there is nothing in the way Blogger is assembled that means we need to access the base folder. So they don’t let us do it. And I doubt that this will change soon.

What to do instead

The options to get around this restriction depend on how the file you need to put in your root folder is intended to be used.

Code installation

If you have code to install on your blog, and a file to go with it, then that’s enough

  1. Host the file somewhere else (maybe in your Picasa-web-album for the blog, if it’s a photo)
  2. Change the code to point to the full path of where you have stored the file, instead of the relative path used in the code

For example, here is the code for a button that links to my blog, with the picture in the root folder:

If someone wants to use the location of a file to verify that they control a website, then they will have code in their own website that looks for the file in your root folder.

You cannot change this code. And you can’t put the fie.

So you need it ask them for an alternative way to checkwhich is suitable for people without access to the root directory.

If they have no alternatives, try lobbying for it on their product support forum: to have no alters, they ensure that Blogger users, among others, cannot use their service.

If the official answer is still “no”, then you can also ask in other online forums if anyone has found other solutions.

An afterthought: what is not recommended

I recently saw someone suggest on a help forum that people with custom domains can put files in the root directory of their blog to FTP the files locally.

This may be true, if the service you purchased from your domain registrar includes file-hosting. But file hosting

  1. It is not necessary for a custom domain used in Blogger (because Google hosts our files for us), and

It is not available as part of the Services when you purchase a custom domain through Blogger.

So it’s not a general solution for most Blogger users, although it may work for some.

Initially I was a little skeptical of the idea: Blogger didn’t expect to see any files in our root directory, so I was worried that it might do strange things if it found them there. But on reflection, I think there is probably a small risk of this happening, since the file-location is out of Blogger’s control. To avoid any confusion, file hosting and DNS hosting are not the same thing. If you buy a custom domain for your blog from a registrar without going through Google / Blogger, then you need to pay for DNS hostingbut you don’t have to buy it


.Related articles

File hosts – places to store the files used in your blog


Picasa-web-albums: a quick introduction

How Blogger data is organized

Setting up a new admin for your blog

Link code BB (forum):Put the files in the root folder of Blogger

Leave a Comment