Why Fear? Now Change Your Filenames Without Disturbing Search Engines/Visitors And Rank Well

By now, you know that to rank well in the Search Engines, you need to have the keyword in your URL's directory name and filename, if not in the domain name as well.

So, if you want to target a keyword, say, 'Woolen Socks', the best way to do it is (a) to have a domain name that contains the word 'woolen socks' in it (like: BuyWoolenSocks.com), (b) place the information page in the 'woolen-socks' directory and (c) write the filename as 'woolen-socks.html'. So the URL should look like:


This definitely gives you much better chance to rank well in search engines with the keyword 'Woolen Socks'. There are other aspects too which help you to rank well, but inserting the keywords in domain name, directory and file name definitely give you a boost.

It's not always possible to have a separate domain name for each and every product. But, you can easily change the directory name and filename to match with your keywords.

But you are afraid to change the alrealy popular URLs for three reasons: (a) you have to manually insert the redirect code in every page, (b) a standard 404 page may lead visitors nowhere or disinterest them and (c) annoying search engines with the constant 404 error page codes so much so that they might ban the site.

But there is no need to worry. Internet has enough provisions to meet every technical need. The only thing you have to know where to look. You can change the filenames without disturbing anything by simply changing one single file.


A 301 redirect is the most efficient and spider/visitor friendly strategy around for web sites that are hosted on servers running Apache (check with your hosting service if you aren't sure). It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you HAVE to change file names or move pages around, it's the safest option.

A 301 code inteprets 'moved permanently'.


Locate a file named .htaccess in your public_html folder (home page folder). If it's not there, just open Notepad (or any text editor: which saves files in .txt mode) and write the following line for each filename change:

redirect 301 /OldFolder/OldFilename.html http://www.you.com/NewFolder/NewFilename.html

Obviously you need to replace 'OldFolder', 'OldFilename.html', 'NewFolder', 'NewFilename' with your own old and new filenames.

For example: if you had a page whose URL is: http://www.YourDomain.com/wp-01.html and the new page's URL is: http://www.YourDomain.com/Woolen-Socks/Woolen-Socks.html write the following code in your .htaccess file:

redirect 301 /wp-01.html http://www.YourDomain.com/Woolen-Socks/Woolen-Socks.html

If you had a page whose URL is: http://www.YourDomain.com/wp/wp-01.html and the new page's URL is: http://www.YourDomain.com/Woolen-Socks/Woolen-Socks.html just write the following code in your .htaccess file:

redirect 301 /wp/wp-01.html http://www.YourDomain.com/Woolen-Socks/Woolen-Socks.html

The line is written like this: 'redirect 301' + 'one spacebar space' + 'old file directory/filename' + 'one spacebar space' + 'new file URL' + '[Enter]'

You can write as many lines as you wish!

If you already have .htaccess file in your folder, write these lines AFTER all other codes already existed there.

Save the file. Check that the filename has not become: .htaccess.txt. If it's so, rename the file to .htaccess and upload it to your public_html directory.

Now, open your browser (Aren't you using FireFox? Oh boy, you're missing a lot!!) and browse to your old filename. You got redirected to the new page location!!


Search engines read your old filenames as 301 code and not a 404. Eventually they should drop the old filenames and index new ones.

Your visitors seamlessly visit your new page following the old filename.

You save lots of time if you have really huge files to change.

Great. Isn't it?

Subhendu Sen is the owner and webmaster of http://www.IndHosts.Net/hosting.html - A Low-Cost Web Hosting Service Provider with Apache Server - and is in the business of web hosting since 1998. He also owns other sites of interest : http://www.TheWebContent.com - An Article Directory and http://www.PopAccount.com - A Free Email Address directory.

In The News:

How Important Are Backlinks for SEO?  Search Engine Journal
The Ultimate Guide to SEO in 2021  Business 2 Community
5 Tips for Hyper-Optimizing Your SEO  Business 2 Community
How to Counter Negative SEO Attacks  Business 2 Community
What Is Enterprise SEO?  Search Engine Journal
SEO in 2020: Going Beyond Google  Search Engine Journal
How to Dominate SEO in Small Markets  Search Engine Journal

How to Protect Your Search Engine Placement by Keeping Up-to-date on Industry Changes

There's no denying it: Search engines are a dominating force... Read More

Writing SEO Copy ? 8 Steps to Success

We all know that the lion's share of web traffic... Read More

You Cannot Hide From the Public Record Search Engines

As a search engine optimization specialist, I often run across... Read More

Ten Steps To A Well Optimized Website - Step 1: Keyword Selection

This is part one of ten in this search engine... Read More

Search Engine Optimization: Get the Low-down

Been hearing the words Search Engine Optimization lately? I know... Read More

SEO Expert Guide - Conclusions (part 10/10)

As you have seen throughout the guide, search engine optimization... Read More

Page Rank - A Quick Overview for Beginners

Page Rank (PR) is a specific value for a website... Read More

Google, Yahoo! and MSN Line up More Goodies for Internet Users

Internet users have never had it better what with Yahoo!,... Read More

Search Term Suggestion Tool

Overture.com offers a cool function to assist you on your... Read More

Google Is Not Only A Search Engine!

When you now organize a street interview and ask people... Read More

How To Syndicate Your Content

Note: In order to preserve the proper format for the... Read More

List Building vs. Search Engine Optimization

It seems the excitement about search engine optimization fades in... Read More

Make Quality Content Your #1 Priority

It is by now a proven fact that content is... Read More

The Changing Face of Search Engine Optimization

With the ever evolving internet market for just about anything... Read More

Google Patent Application - User Data As Part of Ranking Process

In this third article, we continue to dig into the... Read More

The SEO Gurus poem

Am I alone as I survey that vast wilderness outside,Sat... Read More

Search Engine Optimization With Sitemaps

I just wanted to share a little Search Engine Optimization... Read More

Keyword Ownership: What It Is And Where Its Headed

Have you ever got one of those silly emails that... Read More

Creating Search Engine Friendly Web Sites

With tons of competition and copycats online, you need a... Read More

Black Hat SEO and the Sneaky Redirect

Are shades of grey SEO really Black Hat SEO?Black hat... Read More

Keyword Optimization - How To Achieve It

The most important thing you can do for your business... Read More

Google Sitemaps Explained - How To Use Google Sitemaps

Three Ways To Index Your Site With Google Sitemaps [Difficult,... Read More

These 7 Back Link Strategies Will Get You a Top Ranking on Google Guaranteed

Google use a very complex function to determine which search... Read More

Search Engines Are Doomed to Fail

A very provocative title, isn't it? Based on the latest... Read More

7 Steps to Prepare You for The Local Search Bonanza

At One Time Local Searches were reserved for services like... Read More