August 4, 2009
URL optimization with mod_rewrite
As an experienced developer should know, a commercial site without search engine optimization is not a site at all. Beside keyword and metadata optimization and all other stuff you do for your site, you shouldn't miss one of the most important things about optimization – the URLs. URLs play a huge role in optimization, because they are the first thing that a search engine checks when crawling. Your site will be considered related to a keyword that is searched for, if your URL contained that keyword.
The most important part of the URL is the domain name. The most used search engines like Google, Yahoo, Alexa give much importance to prominence. And the domain name is the most prominent part of the web address. After choosing your domain name precisely, the next step is to optimize your site's structure. The first way to do that is if your site is a static one – you should organize your files into directories. Think of your structure as a tree – imagine if your domain name was the stem of a tree, directories were the branches, and the file names – the leaves. So, you should put your main files into different directories with their directory names set to your keyword. And your file name should contain that particular keyword too. If your directory contains several files that share similar topics, set your directory name to a common word for all of the files. If you have a dynamic site, the first way probably won't fit you, but however, a great tool is provided by Apache – mod_rewrite. You can see how it works at Apache’s official site. In simple words, what mod_rewrite does is to get the new URL and convert it to a normal URL. However, with mod_rewrite users and search engines see only the rewritten URL. So if your real URL is yourdomain.com/script.php?category=135&product=237, your rewritten URL could look like yourdomain.com/categoryname/productname/. Isn’t that great? Examples of pages using mod_rewrite are these pages about apartments, villas and hotels in Bulgaria. Look at the URLs. Do you think these are real directories?
The Data Calendar data calendar software is now available for free trial.
————————————————————————–
Thanks for stopping by the software topics blog. I hope you found something of value in these pages.
Get your registry in top condition: registry mechanic download. Latest release is available for this PC Tools registry cleaner.
Sphere: Related Content
Leave a Comment