<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>seoance &#187; rewriting</title>
	<atom:link href="http://www.seoance.com/category/rewriting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seoance.com</link>
	<description>Yet another seo site</description>
	<lastBuildDate>Tue, 16 Feb 2010 12:26:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hire The Best SEO Company For Instant Traffic</title>
		<link>http://www.seoance.com/2010/02/hire-the-best-seo-company-for-instant-traffic/</link>
		<comments>http://www.seoance.com/2010/02/hire-the-best-seo-company-for-instant-traffic/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 11:52:04 +0000</pubDate>
		<dc:creator>oskar</dc:creator>
				<category><![CDATA[Redirects]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[rewriting]]></category>
		<category><![CDATA[best SEO company]]></category>
		<category><![CDATA[customized SEO service]]></category>
		<category><![CDATA[organic SEO company]]></category>
		<category><![CDATA[personalized SEO Services]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[search engine ranki]]></category>
		<category><![CDATA[top SEO companies]]></category>

		<guid isPermaLink="false">http://www.seoance.com/?p=154</guid>
		<description><![CDATA[It is best to use search engine optimization while trying to expose your Business to your targeted audience. You can get the desired result only by using the best SEO company. What is search engine optimization (SEO)? Optimizing your web pages with keyword phrases relating to your products or services is what you do through [...]]]></description>
			<content:encoded><![CDATA[<p>It is best to use search engine optimization while trying to expose your Business to your targeted audience. You can get the desired result only by using the best SEO company. What is search engine optimization (SEO)? Optimizing your web pages with keyword phrases relating to your products or services is what you do through search engine optimization. Link popularity is one of the major aspects for ranking of web pages in relation to keywords. SEO ensures increasing quality back links to your site. The more back links from other websites that you have pointing to yours, the more the search engines will find your blog relevant, thus getting you traffic and higher ranking. </p>
<p>The top SEO researchers know about the algorithmic formulas used by various search engines that the average person does not. A highly optimized website can get first page listing in various search engine result pages. No one understands this fact more than the best SEO Company. Good rankings mean more traffic. Most Internet marketers will agree with the fact that; the more traffic you have the more sale conversion you will make. This is reason why it is important to seek the best SEO company so that your website gets first page listings in various search engine result pages. </p>
<p>SEO is not only good for traffic, but it also helps in stopping readers from going to your competition’s websites. This is the art of growing your name all around the web and branding your business. Having an online presence that is long term and getting high page rank, is only possible through good SEO skills. Choosing the best SEO Company that specializes in many different factors can get you the desired results. Making relevant results in the search engines is possible only when your website comes up in the search engine result pages (SERPs) of various search engines. This is when you are receiving lots of organic traffic based on the relevancy of the keywords you use for your site. </p>
<p>The best SEO company knows that organic traffic is what users of the Internet thrive on. Tapping the organic visitors is quite different from your typical PPC advertisement and a lot more effective. People tend to trust organic results than an advertisement that they know someone paid for it to be there. This is what the best SEO Company knows, and they work their magic around this fact. </p>
<p>Is SEO really required? Well, with the life getting busier day by day, most people go to the Internet now to find quick and fast information. No longer is it relevant to sift through the Yellow Pages or Classified newspapers for information when you can just sit at your computer and type a keyword into the search engine. Most consumers and potential clients look on the Internet all the time to find out information on products and services that they might be interested in. The best SEO Company tries to make your website the most relevant on the web in accordance with your product or service. </p>
<p>You can imagine the amount of traffic you can receive from getting first place listings since 90% of Internet readers click on the first page of any site that pops up in the search engine after an inquiry is made. Using the best SEO company can get you these results. It can be hard trying to go about search engine optimization by yourself without the knowledge and expertise of professionals that have studied optimization inside and out. This is why it is important to pick the best SEO Company to represent your brand and company.</p>
<p>Bergstrom-seo.com is one of the <a href="http://www.bergstrom-seo.com/">best seo company</a>  that delivers exceptional search engine visibility for its&#8217; clients by providing <a href="http://bergstrom-seo.com/inner.html#customized-plan">Website Promotion</a> offerings. Its&#8217; SEO service domain comprises of keyword-based content development, website optimization, strategic link building and social media optimization.</p>
<p>Article Source: <a href="http://www.articledashboard.com/Article/Hire-The-Best-SEO-Company-For-Instant-Traffic/1344399">Hire The Best SEO Company For Instant Traffic</a></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=seoance&amp;siteurl=http%3A%2F%2Fwww.seoance.com%2F&amp;linkname=Hire%20The%20Best%20SEO%20Company%20For%20Instant%20Traffic&amp;linkurl=http%3A%2F%2Fwww.seoance.com%2F2010%2F02%2Fhire-the-best-seo-company-for-instant-traffic%2F"><img src="http://www.seoance.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">a2a_linkname="Hire The Best SEO Company For Instant Traffic";a2a_linkurl="http://www.seoance.com/2010/02/hire-the-best-seo-company-for-instant-traffic/";</script>
    <script type="text/javascript" src="http://www.addtoany.com/js.dropdown.js?type=page"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.seoance.com/2010/02/hire-the-best-seo-company-for-instant-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Reasons Why You Need URL Rewriting Module To Enchance Your Web</title>
		<link>http://www.seoance.com/2007/12/3-reasons-why-you-need-url-rewriting-module-to-enchance-your-web/</link>
		<comments>http://www.seoance.com/2007/12/3-reasons-why-you-need-url-rewriting-module-to-enchance-your-web/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 08:37:40 +0000</pubDate>
		<dc:creator>oskar</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[rewriting]]></category>

		<guid isPermaLink="false">http://www.seoance.com/2007/12/3-reasons-why-you-need-url-rewriting-module-to-enchance-your-web/</guid>
		<description><![CDATA[URL rewriting are major needs for your sites that produce a dynamic pages like PHP pages with redirection pages inside your index page.
What is APACHE URL Mod Rewrite ?
URL Mod Rewrite is a Apache web server module that can manipulate your URL on fly when a visitors join your URL pages.
A mod rewrite mode is [...]]]></description>
			<content:encoded><![CDATA[<p>URL rewriting are major needs for your sites that produce a dynamic pages like PHP pages with redirection pages inside your index page.</p>
<p>What is APACHE URL Mod Rewrite ?</p>
<p>URL Mod Rewrite is a Apache web server module that can manipulate your URL on fly when a visitors join your URL pages.</p>
<p>A mod rewrite mode is usefull to changes your original URL to all types of the URL you dreamed about.</p>
<p>In this link below you will find some solutions guides to use the mod rewrite scripts :</p>
<p>A Users Guide to URL Rewriting with the Apache Webserver<br />
<a href="http://www.engelschall.com/pw/apache/rewriteguide/#ToC1" target="_new">http://www.engelschall.com/pw/apache/rewriteguide/#ToC1</a></p>
<p>Why do you need URL mod_rewriting?</p>
<p>#1 URL manipulating</p>
<p>If you want to hide your original URL and what scripts that you used on it. You can use mod rewrite.</p>
<p>#2 Can be usefull for a Content Management System Based on Text.<br />
Content Management System has been used by 80% webmasters in the World.<br />
Ussualy they used mod rewrite to move the document root to the top level priority.</p>
<p>For an example :</p>
<p>if yout want to changes your URL from :<br />
<a href="http://www.yourdomain.com/e/www" target="_new">http://www.yourdomain.com/e/www</a></p>
<p>And then by using mod rewrite to change the URL to this :<br />
<a href="http://www.yourdomain.com/" target="_new">http://www.yourdomain.com/</a></p>
<p>This module was usefull to make your web URLs look more profesional.</p>
<p>#3 Search Engine Optimization.</p>
<p>Search Engine will crawl your site with their bot scripts. By the research shows that most Search Engines were prefer a HTML pages rather than a Dynamic pages.</p>
<p>So that they can increase your link popularity and make they easy to crawl through your site content.</p>
<p>By using mod_rewrite URL manipulation , you can changes your dynamic pages to a html URL address.</p>
<p>For an example :<br />
<a href="http://www.yourdomain.com/index.php?screen=home" target="_new">http://www.yourdomain.com/index.php?screen=home</a><br />
You can changes it to this by mod_rewrite:<br />
<a href="http://www.yourdomain.com/index.html" target="_new">http://www.yourdomain.com/index.html</a></p>
<p>In other words: With mod_rewrite you either shoot yourself in the foot the first time and never use it again or love it for the rest of your life because of its power.</p>
<p>This paper tries to give you a few initial success events to avoid the first case by presenting already invented solutions to you.</p>
<p>About an Author</p>
<p>Handry Teguh is a web designer and articles publishers at <a href="http://www.buaya.com." target="_new">http://www.buaya.com.</a><br />
And now his job was an IT Solution Consultant and Implementator in<br />
security and storages solutions of Multi Vendors Product like : CA, MICROSOFT, GFI, SYMANTEC, CCTV.</p>
<p><span class="technoratitag">Technorati Tags: <a href="http://www.technorati.com/tags/mod+rewrite" rel="tag">mod rewrite</a>, <a href="http://www.technorati.com/tags/rewrite+url" rel="tag">rewrite url</a>, <a href="http://www.technorati.com/tags/SEO" rel="tag">SEO</a>, <a href="http://www.technorati.com/tags/dynamic+pages" rel="tag">dynamic pages</a></span></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=seoance&amp;siteurl=http%3A%2F%2Fwww.seoance.com%2F&amp;linkname=3%20Reasons%20Why%20You%20Need%20URL%20Rewriting%20Module%20To%20Enchance%20Your%20Web&amp;linkurl=http%3A%2F%2Fwww.seoance.com%2F2007%2F12%2F3-reasons-why-you-need-url-rewriting-module-to-enchance-your-web%2F"><img src="http://www.seoance.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">a2a_linkname="3 Reasons Why You Need URL Rewriting Module To Enchance Your Web";a2a_linkurl="http://www.seoance.com/2007/12/3-reasons-why-you-need-url-rewriting-module-to-enchance-your-web/";</script>
    <script type="text/javascript" src="http://www.addtoany.com/js.dropdown.js?type=page"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.seoance.com/2007/12/3-reasons-why-you-need-url-rewriting-module-to-enchance-your-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mod-Rewrite For Newbies</title>
		<link>http://www.seoance.com/2007/07/mod-rewrite-for-newbies/</link>
		<comments>http://www.seoance.com/2007/07/mod-rewrite-for-newbies/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 06:37:06 +0000</pubDate>
		<dc:creator>oskar</dc:creator>
				<category><![CDATA[rewriting]]></category>

		<guid isPermaLink="false">http://www.seoance.com/2007/07/mod-rewrite-for-newbies/</guid>
		<description><![CDATA[This article is not a complete quide to Apache&#8217;s mod_rewtite neither to .htaccess.
Its purpose is to help you &#8211; the webmaster &#8211; to create &#8220;mod_rewriten&#8221; versions of your dynamic webpages even if you have limited technical knowledge.
I won&#8217;t show you all the tips-and-tricks &#8211; my aim is to bring all the complexity of the Apache&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>This article is not a complete quide to Apache&#8217;s mod_rewtite neither to .htaccess.<br />
Its purpose is to help you &#8211; the webmaster &#8211; to create &#8220;mod_rewriten&#8221; versions of your dynamic webpages even if you have limited technical knowledge.<br />
I won&#8217;t show you all the tips-and-tricks &#8211; my aim is to bring all the complexity of the Apache&#8217;s documentation to 1-2 pages of human lanuage &#8211; easy and fast.</p>
<p><strong>What is mod_rewrie?</strong></p>
<p>Mod_rewrite is Apache extension which allows you to &#8220;rewrite&#8221; the URLs of your web pages.<br />
If your server supports this technology (most linux webhosts do nowadays) you are able to rewrite virtually any URL into anything you like. Most often it is used to rewrite the URLs of dynamicly generated webpages such as <a href="http://www.mywebsite.com/index.php?par1=1&amp;par2=2&amp;par3=2..." target="_new">http://www.mywebsite.com/index.php?par1=1&amp;par2=2&amp;par3=2&#8230;</a><br />
This can easy be &#8216;translated&#8217; into <a href="http://www.mywebsite.com/par1/par2/par3" target="_new">http://www.mywebsite.com/par1/par2/par3</a></p>
<p><strong>Why mod_rewrite?</strong></p>
<p>- Search engine optimization &#8211; there are a lot of debates on this topic, but it is still<br />
true that the static-looking links rank better than the dynamic ones.<br />
Here is a comfirmation from Google on that topic:</p>
<p>&#8220;Your pages are dynamically generated. We&#8217;re able to index dynamically generated pages. However, because our web crawler could overwhelm and crash sites that serve dynamic content, we limit the number of dynamic pages we index. In addition, our crawlers may suspect that a URL with many dynamic parameters might be the same page as another URL with different parameters. For that reason, we recommend using fewer parameters if possible. Typically, URLs with 1-2 parameters are more easily crawlable than those with many parameters.&#8221;</p>
<p>- User-friendlyness &#8211; Some users remember the URLs visally. Even if they bookmark, they can easier recognize a link like <a href="http://www.mywebsite.com/services.html" target="_new">http://www.mywebsite.com/services.html</a> than <a href="http://www.mywebsite.com/index.php?task=12" target="_new">http://www.mywebsite.com/index.php?task=12</a> for example.</p>
<p>- Security &#8211; mod_rewrite helps you hide the parametters passed in the application. Basicly your dynamic pages should be secure enough even without mod_rewrite. But hiding the parametters will decrease the danger of attack</p>
<p><strong>How to use it?</strong><br />
Mod_rewrite is really powerful if you are familiar with the regular expressions which it uses.<br />
But learning the whole pattern syntax can be quite complicated, especially for the non-technical user. Thats why i&#8217;ll teach you at several simple patterns which are pretty enough to get your website URLs rewritten.</p>
<p><strong>Lets start:</strong><br />
First you need to create a file called .htaccess and place it exactly in the folder where you want the rewriting to take effect (it will also take effect over all subfolders).  In case you already have a .htaccess file you can simply add the lines to it (if it already has mode_rewrite directives you can mess them however).<br />
Open it in a simple text editor an start with:</p>
<p>Options +FollowSymLinks<br />
RewriteEngine on</p>
<p>Now the rewrite engine is switched on. You can now start adding as many rewrite rules as you want. The format is simple:</p>
<p><em>RewriteRule   rewrite_from rewrite_to</em></p>
<p>Here &#8220;RewriteRule&#8221; is static text, i.e. you should not change. &#8220;rewrite_from&#8221; is the address which will be typed in the browser and &#8220;rewrite_to&#8221; &#8211; which page the server will actually activate. Both of these can contain &#8220;masks&#8221;, but in &#8220;rewrite_to&#8221; we will only use $ and will discuss more or &#8220;rewrite_from&#8221; part. Let me &#8220;meet you&#8221; with the very few masks you&#8217;ll need and bring you some samples. You&#8217;ll see how easy is it.</p>
<p>Let&#8217;s stop talking theory and see an example. Let&#8217;s imagine your server runs an e-shop, which<br />
uses URLs like index.php?task=categories to list the categories, index.php?task=category&amp;id=5 to show a category contents and other parametters in &#8216;task&#8217; to do other things.</p>
<p><em>RewriteRule   ^(.*).html index.php?task=$1</em></p>
<p>What does all that mean? This is a rewrite rule which allows you to make your URLs looking as &#8220;static&#8221;. In this example categories.html will be &#8220;translated&#8221; to index.php?task=categories.<br />
So you no longer need dynamic URL to list ther categories, but can write categories.html</p>
<p>But what do all these strange characters mean?<br />
- ^ character marks the beginning. I.e. you tell the server that it should not expect anything before it.<br />
- (.*) &#8211; This combination is the most often used and it means literally &#8220;everything&#8221;. So everything you type before &#8220;.html&#8221; (i.e. your fake file name) will be passed as:<br />
- $1 &#8211; This is a parametter, saying where the first mask should be put. If you have more than one masks (masks are everything which you use to represent dynamich text or file names) you can use $2, $3 etc. You&#8217;ll seemor ein the following examples.</p>
<p>So, if you have categories.html it will be translated info index.php?task=categories, services.html into index.php?task=services etc&#8230;</p>
<p>What if you have more than one parametter? First, you should use some characters as delimiter:</p>
<p><em>RewriteRule   ^(.*)-(.*).html index.php?task=$1&amp;language=$2</em></p>
<p>Here how you can also pass task and language. For example:<br />
categories-englist.html will be translated into index.php?task=categories&amp;language=english.</p>
<p><strong>IMPORTANT:</strong> If you first write<br />
<em>RewriteRule   ^(.*).html index.php?task=$1</em><br />
The second one may not work. You need to always start from the most complicated rule to the simplest one.</p>
<p><strong>Make it Better:</strong><br />
The rule (.*) is too general and often may prevent you of making more complicated rewriting rules. So it is recommended that you &#8220;limit&#8221; the rules into something more concrete. Here are a couple of advices:</p>
<p>- Use the &#8220;OR&#8221; operator. In our e-shop example we have only few possible &#8220;tasks&#8221; passed to index.php. Lets say:<br />
index.php?task=categories<br />
index.php?task=category<br />
index.php?task=product<br />
index.php?task=services</p>
<p>What will happen if you want to use your static file about.html? It will be rewritten into index.php?task=about and won&#8217;t work. So you can use the OR operator and limit the rewriting only to the cases you need:</p>
<p><em>RewriteRule   ^(categories|category|product|services).html index.php?task=$1</em></p>
<p>This tells the server to rewrite only if the file name is categories.html OR category.html OR product.html OR services.html</p>
<p>- Using &#8220;numbers&#8221;. You can easy limit the rewriter to rewrite if it meets only numbers at a certain place:</p>
<p><em>RewriteRule   ^category-([0-9]*).html index.php?task=category&amp;id=$1</em></p>
<p>With ([0-9]*) mask you tell the rewrite engine that on the mask place it should expect onlly numbers. So if it see category-english.html it won&#8217;t rewrite to index.php?task=category&amp;id=english, but to index.php?task=category&amp;language=english (because of the rule we have shown above &#8211; RewriteRule   ^(.*)-(.*).html index.php?task=$1&amp;language=$2.).</p>
<p>Complete example: Here is how will look the final .htaccess file for our imaginary e-shop:</p>
<p>&#8212;&#8212;&#8211;<br />
Options +FollowSymLinks<br />
RewriteEngine on</p>
<p>RewriteRule   ^(.*)-(.*).html index.php?task=$1&amp;language=$2.<br />
RewriteRule   ^(categories|category|product|services).html index.php?task=$1<br />
RewriteRule   ^category-([0-9]*).html index.php?task=category&amp;id=$1<br />
&#8212;&#8212;&#8211;</p>
<p>For professional help visit <a href="http://seo.pimteam.net" target="_new">SEO PIM Team</a></p>
<p>For more articles visit <a href="http://pimteam.net" target="_new">PIM Team Bulgaria</a>.</p>
<p><span class="technoratitag">Technorati Tags: <a href="http://www.technorati.com/tags/mod+rewrite" rel="tag">mod rewrite</a>, <a href="http://www.technorati.com/tags/apache" rel="tag">apache</a>, <a href="http://www.technorati.com/tags/htaccess" rel="tag">htaccess</a>, <a href="http://www.technorati.com/tags/SEO" rel="tag">SEO</a>, <a href="http://www.technorati.com/tags/internet+marketing" rel="tag">internet marketing</a></span></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=seoance&amp;siteurl=http%3A%2F%2Fwww.seoance.com%2F&amp;linkname=Mod-Rewrite%20For%20Newbies&amp;linkurl=http%3A%2F%2Fwww.seoance.com%2F2007%2F07%2Fmod-rewrite-for-newbies%2F"><img src="http://www.seoance.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">a2a_linkname="Mod-Rewrite For Newbies";a2a_linkurl="http://www.seoance.com/2007/07/mod-rewrite-for-newbies/";</script>
    <script type="text/javascript" src="http://www.addtoany.com/js.dropdown.js?type=page"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.seoance.com/2007/07/mod-rewrite-for-newbies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL Rewriting &#8211; Get Rid of Those Ugly Dynamic URLs</title>
		<link>http://www.seoance.com/2007/06/url-rewriting-get-rid-of-those-ugly-dynamic-urls/</link>
		<comments>http://www.seoance.com/2007/06/url-rewriting-get-rid-of-those-ugly-dynamic-urls/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 08:36:40 +0000</pubDate>
		<dc:creator>oskar</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[rewriting]]></category>

		<guid isPermaLink="false">http://www.seoance.com/2007/06/url-rewriting-get-rid-of-those-ugly-dynamic-urls/</guid>
		<description><![CDATA[Have you searched forums about dynamic URL rewriting and come out more confused than when you went in? This article aims to make clear the &#8220;groundwork&#8221; of URL rewriting. More resources will be pointed out to further your understanding and get you actually doing it!
If you&#8217;re reading this article, you probably know that Search Engines [...]]]></description>
			<content:encoded><![CDATA[<p>Have you searched forums about dynamic URL rewriting and come out more confused than when you went in? This article aims to make clear the &#8220;groundwork&#8221; of URL rewriting. More resources will be pointed out to further your understanding and get you actually doing it!</p>
<p>If you&#8217;re reading this article, you probably know that Search Engines do not index dynamic URLs as well as they index static URLs. The most popular method of automatically rewriting URLs is called &#8220;mod rewrite&#8221;. If you are using an Apache server to host your website(contact your web host) then read on. If not then have a look at the mod rewrite article in Wikipedia and read no further.</p>
<p>The simplest way to do a mod rewrite with an Apache server is to upload a text file named .htaccess to your root folder (where your imdex.html file is stored) that contains certain rules. That said before we go any further you need to understand how mod rewrite works.</p>
<p><strong>How does Mod Rewrite for Apache work?</strong><br />
What mod rewrite does in its simplest form is take a static URL that you type in, for example  <a href="http://www.africapic.com/index/closeup/100-3976-0.html" target="_new">http://www.africapic.com/index/closeup/100-3976-0.html</a>  and treat  it the same as if you had typed in a dynamic URL, for example <a href="http://www.africapic.com/index.php?pageId=100&amp;id=3976&amp;start=0" target="_new">http://www.africapic.com/index.php?pageId=100&amp;id=3976&amp;start=0</a> (take note now that the numbers correspond). In other words, the second URL is actually fetched but the location bar displays the first URL. Search Engines will now understand the page as static not dynamic – hooray!  Please Note: you still have to change the internal links of your site to point to the new static URLs not the old dynamic URLs (see below). For the example above this would require a knowledge of PHP.</p>
<p><strong>So how do you do it?</strong><br />
Firstly, you need to have knowledge of &#8220;Regular Expressions&#8221; for mod rewriting. Regular Expressions is a programming term that is &#8220;a string used to describe or match a set of strings&#8221; (Wikipedia). For example, the regular expression [^/]+ would match with &#8220;any string of characters up until the &#8216;/&#8217; &#8220;. For more information goto <a href="http://forum.modrewrite.com/viewforum.php?f=12" target="_new">http://forum.modrewrite.com/viewforum.php?f=12</a>.</p>
<p>Secondly, once you know how to use regular expressions for mod rewrite, you need to decide which dynamic URL you want changed and what it&#8217;ll look like when it is changed. In the example above you can see that the pageId, id and start values remain the same in the static URL, this is very important as when the static URL is changed to a dynamic URL on the server (see below) the values are taken from the static URL.</p>
<p>Thirdly, you need to write rules and put them in a text file named .htaccess (that&#8217;s [nothing].htaccess). What these rules do is use regular expressions to match a static URL. If the match is correct (for e.g.  match a number then a &#8220;-&#8221; then a number then a &#8220;-&#8221; then a number.html) the rule rewrites it as a dynamic URL on the server (the browser location bar still shows a static URL). There are many technical things to remember when doing this so why not have a look at the forum mentioned above. The .htaccess file is then uploaded to the root folder of your web page (same folder as the index.html file would go).</p>
<p>Lastly, you need  to change the internal links of your site to point to the new static URLs not the old dynamic URLs.</p>
<p><strong>Conclusion</strong><br />
To conclude for doing a mod rewrite when you have an Apache server you need to know how to program regular expressions, you need a clear understanding of what URL will be seen by the user and what URL is accepted and displayed by the server and you need the technical know how of writing rules in an .htaccess file.</p>
<p><a href="http://www.africapic.com" target="_new">http://www.africapic.com</a></p>
<p><span class="technoratitag">Technorati Tags: <a href="http://www.technorati.com/tags/URL+rewriting" rel="tag">URL rewriting</a>, <a href="http://www.technorati.com/tags/dynamic+URL" rel="tag">dynamic URL</a>, <a href="http://www.technorati.com/tags/static+url" rel="tag">static URL</a>, <a href="http://www.technorati.com/tags/SEO" rel="tag">SEO</a>, <a href="http://www.technorati.com/tags/affiliate+marketing" rel="tag">affiliate marketing</a></span></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=seoance&amp;siteurl=http%3A%2F%2Fwww.seoance.com%2F&amp;linkname=URL%20Rewriting%20%E2%80%93%20Get%20Rid%20of%20Those%20Ugly%20Dynamic%20URLs&amp;linkurl=http%3A%2F%2Fwww.seoance.com%2F2007%2F06%2Furl-rewriting-get-rid-of-those-ugly-dynamic-urls%2F"><img src="http://www.seoance.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">a2a_linkname="URL Rewriting – Get Rid of Those Ugly Dynamic URLs";a2a_linkurl="http://www.seoance.com/2007/06/url-rewriting-get-rid-of-those-ugly-dynamic-urls/";</script>
    <script type="text/javascript" src="http://www.addtoany.com/js.dropdown.js?type=page"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.seoance.com/2007/06/url-rewriting-get-rid-of-those-ugly-dynamic-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
