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:

5 Ways SEO & Web Design Go Together  Search Engine Journal
A New Twist In SEO  Business 2 Community
How to make data driven SEO decisions  Business MattersBusiness Matters
Surprising Facts About E-A-T  Search Engine Journal
Top SEO Sydney  WhaTech
How to Evaluate Link Opportunities  Search Engine Journal

What are the Benefits Of Submitting To Directories?

Increasing your web traffic and rank in search engines is... Read More

What Is Search Engine Marketing?

It's in our genes, we're driven to seek. We 'hunt'... Read More

Search Engine Optimization that Works in the Long-Term

Search engines are constantly tweaking their ranking algorithms and when... Read More

Yahoos Back!

I was all set to write an article predicting the... Read More

Black Hat SEO and the Sneaky Redirect

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

How to Prevent Duplicate Content with Effective Use of the Robots.txt and Robots Meta Tag

Duplicate content is one of the problems that we regularly... Read More

Going To Market: Keywords and Backlinks, Part 1

As I waded into the 'Make Money Online' waters on... Read More

Website Optimization, Good Overall Optimization is Key

Good overall optimization, the right keyword phrases and quality content... Read More

Get Personal With Google

Anyone who's been on the net any time at all... Read More

Abandoned by Google! Googlebot, Wherefore Art Thou Googlebot?

As a search engine optimization specialist I often optimize existing... Read More

Top Search Engine Ranks, Part 2- Mastering the Secret- Explained

In the first part of this series on ranking at... Read More

The Wonders of Wordtracker: Its More than a Hunt for Keywords

For me personally, Wordtracker.com is not just a... Read More

Link Popularity --- Its Role and Importance In Getting Top Search Engine Rankings

Introduction"Link Popularity" ? these words may have caught your attention... Read More

Internet Marketing and SEO

Have you ever seen any email offers of getting you... Read More

Why Do You Want to Link With A Home Business And Affiliate Website?

No, it's not a general question for all and sundry.... Read More

What Is Search Engine Optimization And Why Do I Need It?

Purchasing web design service is confusing with all of the... Read More

Search Engine Optimization, Positioning: Is Chasing Google Algorithms Worth It?

Google is the undisputed heavyweight champion of search engines. Most... Read More

Why Pay-Per-Inclusion Search Engines are Dying

A Pay-Per-Inclusion search engine is a service in which a... Read More

Search Engine Copywriting: Focus on One Topic

Perhaps the simplest of all the lessons I have learned... Read More

Mindset from Yahoo!- Changing the SEO Game

Yahoo! has a developed a new concept in search engine... Read More

Submitting Your Site to Search Engines and Directories

Regardless of which type of business you currently have, you... Read More

How to Improve Your Search Engine Rankings

When people think of search engine optimization, they immediately think... Read More

Stay In The Know With Google SMS

The Short Messaging Service (SMS) from Google sends short, quick,... Read More

So, Where Has Your Search Engine Been Today?

Visit Google, Yahoo, MSN or one of the lesser search... Read More

Googles Back Door... Get Your Website Indexed Quicker!

It's the buzz word's going across the internet marketing guru's... Read More