September 16, 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. If the URL refers to the keyword that is searched, the site’s main topic is considered to be related with this keyword.

The domain name is the most important part of the URL. 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. Your main files should be placed in different directories named after an important keyword. That particular keyword should be in your file name too. If your directory contains several files that share similar topics, set your directory name to a common word for all of the files. The second way to optimize your URL and also the way that is used for dynamic sites is to use a great function that Apache provides – mod_rewrite. There is an extensive manual 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?

 

Spyware troubles? spyware doctor download. Latest release is available.

Filed under Computer Repair, Computer Software, Internet, Spyware Adware, Video, blogging, photography by amauser

Spread the Word!

Permalink Print Comment

Leave a Comment

You must be logged in to comment

SEO Powered by Platinum SEO from Techblissonline
Login
BHO Technologists Computer Help And Technology Education