Ask the Experts: Rewriting Looooooong URLs

URL stands for Uniform Resource Locator. The URL is your web address that you see in the address bar of your browser. It usually begins with HTTP...

provided by: 

Are Short URLs Important To Your Website?

To answer this very important question, Website Services turned to two 'Net experts. The consensus, if you have ever had to deal with the issue, will not be surprising. "My years of experience have shown that short URLs out perform the long URLs in almost every way," said Bret Fencl of FenclWebDesign.com LLC. "There are various reasons that web sites may require long URLs, such as proprietary software that is licensed, but there still may be workarounds for most of your important pages."

While it is those workarounds that the majority of us are most interested in, as always, it is important to start at the beginning to learn what a URL is and then to move on and see why long URLs create problems.

Bret Fencl: Let's start with the basics. URL stands for Uniform Resource Locator. The URL is your web address that you see in the address bar of your browser. It usually begins with HTTP, but may begin with HTTPS for SSL secure pages. Usually your home page URL will look something like this: http://www.example.com. The problem of long URLs isn't usually on the home page, but the rest of the pages and especially shopping cart pages. Take a close look through your web site to see if you have any URLs that look like the following:

http://www.example.com/shoppingcart/script/contents.php?prod_id=395847&w=9&p=1

If you did find some long URL then you may want to read further. Shortening most or all of your URLs to the length below would make it easier for your web site visitors to understand, plus help the search engines with proper indexing of your web site.
http://www.example.com/widget/green.html

"short URLs out perform the long

URLs in almost every way"


There are many possible issues that long URLs may cause. One issue may be that your visitors many not be able to email a working link of your site to a co-worker or family member. The links may take up two lines in the email, or break after the (?) question mark, and therefore cannot be clicked properly.

Many search engines may have an easier time navigating and indexing your web site correctly if the URL simply matches the name of the actual product or subject on the page. I am in no way suggesting that you stuff the URL with spam techniques such as:

http://www.example.com/keyword-widget-keyword/keyword-green-keyword.html


Just add the name of the product or subject of the page to the URL, but do not go overboard. Going overboard such as the above keyword example could cause your site to be penalized by search engines.

The simplified readability of short URLs can help your click through ratio on the search engines. When looking for a particular item in the search results of a search engine, do certain web sites stand out clearer, simply because they are easier to read? Did seeing the items name in the URL catch your eye? Let's assume that two web sites ranked equally on your favorite search engine, and both web sites carry the exact same product. If you had to choose one web site first to click, which result below would you most likely click?

Example Company Widget Sales
http://www.example.com/shoppingcart/script/contents.php?prod_id=395847&w=9&p=1

Example Company Widget Sales
http://www.example.com/widget/green.html

Why do long URLs create indexing problems for search engines and what can be done about it?
While Bret gave us a great start into the basics of rewriting long URLs, Website Services also turned to Jim Goslin, Director of Optimization at IncreaseVisibility.com.

Jim Goslin: Most major search engines can index sites that use the querystring in the address that produce long URL's, but they do present drawbacks. Search spiders tend to crawl and index the pages much slower than static html pages and if the Querystring contains more than 3 parameters, they can confuse the spiders and cause pages not to be indexed. In fact, if the URL's contain session ID information or if the URL contains the string "&id=" they may not be indexed at all. The reason is that long URL's tend to be pages that all use the same template and can be seen as duplicate content and may not be indexed.

Static pages however are not the only solution to long URLs. Websites can still use dynamic pages and mask the URL's with something called URL Rewriting; a simple process of having the server transform long url's into pages that appear to be static. This can be done on both Windows/IIS and Linux/Unix based systems. Most implementations require some basic knowledge of Regular Expressions.

For Unix/Linux Web Servers:
The easiest implementation is done on Unix/Linux based systems using the .htaccess File in your root directory. If speed is a concern, the most popular web server on 'Nix based systems is Apache, which includes a built in module (created exactly for this purpose) called "Mod_Rewrite".

For ASP Windows/IIS Web Servers.
The best solution here is to use a third party program like ISAPI / Rewrite from Helicon Tech. This will require having your systems administrator install the program on your server.

For .ASPX Windows/IIS Web Servers
Windows/IIS doesn't have the same support for this functionality as 'Nix/apache but it can be done. The functionality can be coded into your web applications in a few different ways, the simplest way is to have regular expressions in your Global.asax file do the translations, this is best used on a server without heavy load. If speed is a factor, a custom or third party ISAPI Filter is best, this would be an application that you install on the server that would do the translations. Some example third party filters are URL Rewrite by IISMods and URL Rewrite by Smalig|Webworks.

Are there some content management systems that are more user-friendly when it comes to recreating file names?
Many content management systems provide the functionality to create websites that are dynamic and still use search engine friendly URL's. The main functionality to look for with CMS Systems is how customizable the templates are, as well as the URL's. Two good programs that perform well under heavy load, are ablecommerce and Siterefresh from Refreshsoftware. If cost is a factor, there are many free open source tools available, like OpenCMS and Typo3.

Many thanks to Bret Fencl of FenclWebDesign.com, LLC and Jim Goslin, Director of Optimization at IncreaseVisibility.com for their valuable contributions to the Website Services Magazine Ask The Experts section.
 



Read full article at websitemagazine.com
Related Articles
- Building Links By Directories
Web directories are not merely a service to gain a one-way incoming link. For more information about web directories, read the following article.
- Online Fraud Prevention
- Social Bookmarking
- How to Block Site Access
- SEO for Ecommerce
- Sending Pictures By Email
- Achieving Better SEO Ranking
- About SEO Consultants and SEO Experts
- How To Make a Screencast
- Hiring SEO Consultants
Regional Articles
- Ask the Experts: Rewriting Looooooong URLs Alabama
- Ask the Experts: Rewriting Looooooong URLs Alaska
- Ask the Experts: Rewriting Looooooong URLs Arizona
- Ask the Experts: Rewriting Looooooong URLs Arkansas
- Ask the Experts: Rewriting Looooooong URLs California
- Ask the Experts: Rewriting Looooooong URLs Colorado
- Ask the Experts: Rewriting Looooooong URLs Connecticut
- Ask the Experts: Rewriting Looooooong URLs DC
- Ask the Experts: Rewriting Looooooong URLs Delaware
- Ask the Experts: Rewriting Looooooong URLs Florida
- Ask the Experts: Rewriting Looooooong URLs Georgia
- Ask the Experts: Rewriting Looooooong URLs Hawaii
- Ask the Experts: Rewriting Looooooong URLs Idaho
- Ask the Experts: Rewriting Looooooong URLs Illinois
- Ask the Experts: Rewriting Looooooong URLs Indiana
- Ask the Experts: Rewriting Looooooong URLs Iowa
- Ask the Experts: Rewriting Looooooong URLs Kansas
- Ask the Experts: Rewriting Looooooong URLs Kentucky
- Ask the Experts: Rewriting Looooooong URLs Louisiana
- Ask the Experts: Rewriting Looooooong URLs Maine
- Ask the Experts: Rewriting Looooooong URLs Maryland
- Ask the Experts: Rewriting Looooooong URLs Massachusetts
- Ask the Experts: Rewriting Looooooong URLs Michigan
- Ask the Experts: Rewriting Looooooong URLs Minnesota
- Ask the Experts: Rewriting Looooooong URLs Mississippi
- Ask the Experts: Rewriting Looooooong URLs Missouri
- Ask the Experts: Rewriting Looooooong URLs Montana
- Ask the Experts: Rewriting Looooooong URLs Nebraska
- Ask the Experts: Rewriting Looooooong URLs Nevada
- Ask the Experts: Rewriting Looooooong URLs New Hampshire
- Ask the Experts: Rewriting Looooooong URLs New Jersey
- Ask the Experts: Rewriting Looooooong URLs New Mexico
- Ask the Experts: Rewriting Looooooong URLs New York
- Ask the Experts: Rewriting Looooooong URLs North Carolina
- Ask the Experts: Rewriting Looooooong URLs North Dakota
- Ask the Experts: Rewriting Looooooong URLs Ohio
- Ask the Experts: Rewriting Looooooong URLs Oklahoma
- Ask the Experts: Rewriting Looooooong URLs Oregon
- Ask the Experts: Rewriting Looooooong URLs Pennsylvania
- Ask the Experts: Rewriting Looooooong URLs Rhode Island
- Ask the Experts: Rewriting Looooooong URLs South Carolina
- Ask the Experts: Rewriting Looooooong URLs South Dakota
- Ask the Experts: Rewriting Looooooong URLs Tennessee
- Ask the Experts: Rewriting Looooooong URLs Texas
- Ask the Experts: Rewriting Looooooong URLs Utah
- Ask the Experts: Rewriting Looooooong URLs Vermont
- Ask the Experts: Rewriting Looooooong URLs Virginia
- Ask the Experts: Rewriting Looooooong URLs Washington
- Ask the Experts: Rewriting Looooooong URLs West Virginia
- Ask the Experts: Rewriting Looooooong URLs Wisconsin
- Ask the Experts: Rewriting Looooooong URLs Wyoming
Related Articles
- Sending Pictures By Email
If you want to know more about sending digital photos via email, this article is for you. In the following article, you'll learn about sending pictures in Email, eStationer Personal.
- Building Links By Directories
- Online Fraud Prevention
- How To Make a Screencast
- Social Bookmarking
- Hiring SEO Consultants
- About SEO Consultants and SEO Experts
- Achieving Better SEO Ranking
- SEO for Ecommerce
- How to Block Site Access

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Advertising Family Home Services Real Estate Resources
Business Services Fashion Industrial Goods & Services Retail & Consumer Services
Career Financial Services Insurance Software
Cars Food & Beverage Internet Technology
Computer Hardware Franchise Legal Telecommunications
Construction Health Miscellaneous Trade Shows
Education Holidays Nightlife Travel
Entertainment Home Appliances Online Database Weddings
Environmental Home Electronics Pets World History