<?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>London SEO &#187; Tutorials</title>
	<atom:link href="http://london-seo.com/seo/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://london-seo.com</link>
	<description>London Search Engine Optimisation</description>
	<lastBuildDate>Thu, 03 Apr 2008 18:38:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Getting the button to stay in on PCMCIA cards&#8230;</title>
		<link>http://london-seo.com/getting-the-button-to-stay-in-on-pcmcia-cards/79/</link>
		<comments>http://london-seo.com/getting-the-button-to-stay-in-on-pcmcia-cards/79/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 23:11:39 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Slightly Off Topic]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://london-seo.com/getting-the-button-to-stay-in-on-pcmcia-cards/79/</guid>
		<description><![CDATA[Another tip for noobs who are stuck (see previous post&#8230;). Sorry about this being a bit useless. But I couldn&#8217;t work out how to do it!! Ok. Earlier i was playing with the pcmcia (some people call these pc cards or smart cards) and pushed it out but couldn&#8217;t get the release button back in. [...]]]></description>
			<content:encoded><![CDATA[<p>Another tip for noobs who are stuck (see previous post&#8230;). Sorry about this being a bit useless. But I couldn&#8217;t work out how to do it!!</p>
<p>Ok. Earlier i was playing with the pcmcia (some people call these pc cards or smart cards) and pushed it out but couldn&#8217;t get the release button back in. It is quite simple. Just use a pen or something to push it in further than you can with your hand (but don&#8217;t force it).</p>
<p>I really should get back to some SEO posts&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/getting-the-button-to-stay-in-on-pcmcia-cards/79/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Orange Broadband Livebox Installation Help</title>
		<link>http://london-seo.com/orange-broadband-livebox-installation-help/78/</link>
		<comments>http://london-seo.com/orange-broadband-livebox-installation-help/78/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 13:34:38 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Slightly Off Topic]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://london-seo.com/orange-broadband-livebox-installation-help/78/</guid>
		<description><![CDATA[(If you don&#8217;t have to install the Orange livebox software, ignore this post&#8230;). Click read more to read it. Just a little post, after spending a long time searching and finding nothing and then finally getting through to Orange support: If you try and install the Live box installation and it just brings up a [...]]]></description>
			<content:encoded><![CDATA[<p>(If you don&#8217;t have to install the Orange livebox software, ignore this post&#8230;). Click read more to read it.</p>
<p><span id="more-78"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-4060985266843652";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Just a little post, after spending a long time searching and finding nothing and then finally getting through to Orange support:</p>
<p>If you try and install the <strong>Live box installation </strong>and it just brings up a <strong>help</strong> box about firewalls and anti viruses, either give up and call Orange support, or do the following <strong>at your own risk</strong></p>
<p>Assuming everything is plugged in correctly -</p>
<ul>
<li><strong>Open up your browser </strong>(Internet Explorer or FF) and enter: <strong>192.168.1.1 </strong>(this connects to the livebox router)</li>
<li>Login, using username/pass as <strong>admin/admin</strong></li>
<li>Under my services, click <strong>internet</strong>. Then type in your username (in the form of yourusername.wanadoo.co.uk@fs or whatever &#8211; ie <strong>everything in your email after the @ and add on @fs</strong>) and password</li>
<li>It should then work&#8230;</li>
</ul>
<p><u><strong>Setting up a wireless connection to your livebox</strong></u></p>
<p>Assuming you have a wireless card in your computer, go  to start &#8211; connect to &#8211; wireless connection (or similar, depending on your system. It may be under network connections/control panel/etc. <strong>Now go and press the&#8221;1&#8243; button on your live box. </strong>This enables pairing for the next 10 mins or so. If you don&#8217;t do this, you will not be able to connect (and it will try and connect to your livebox for ages but not actually do anything!&#8230; Then go back to your pc, hopefully it&#8217;ll list the live box. If it does, <strong>click connect </strong>(if it doesn&#8217;t, move closer to the live box or seek other help!), you will need to enter a &#8220;WEP&#8221; code. <strong>This is on the bottom of the livebox </strong>so go and type that in. (If you are connected via a patch cable, just go to 192.168.1.1, go to the wireless settings, and copy the WEP key (and put it on a usb stick and put it on your other computer etc) to ensure you have the right code&#8230; It should all work.</p>
<p>Hope this helps someone. It isn&#8217;t the best write up, but to be honest it is more help than I got from orange support. I called up once saying i just couldn&#8217;t connect wirelessly, and he tried to get me to pay for some guy to come out and fix it. All I had to do was press that &#8220;1&#8243; button on the back of the livebox.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-4060985266843652";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Leave comments if this has helped you or if you have any other tips for the Livebox.</p>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/orange-broadband-livebox-installation-help/78/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Tracking # of hit from bookmarks/favourites</title>
		<link>http://london-seo.com/see-how-many-people-bookmark-yoursite/66/</link>
		<comments>http://london-seo.com/see-how-many-people-bookmark-yoursite/66/#comments</comments>
		<pubDate>Mon, 22 Jan 2007 01:40:31 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[London SEO]]></category>
		<category><![CDATA[New concepts]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Quick posts]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Webmastering Basics]]></category>

		<guid isPermaLink="false">http://london-seo.com/see-how-many-people-bookmark-yoursite/66/</guid>
		<description><![CDATA[There are no real ways to know for sure how many people go to your site from bookmarks, but a couple of ways (the usual) take a high %  (or even 100%) of unique WITHOUT any referrer data (that also are not a bot) Make a &#8220;bookmark this&#8221; link, but make the bookmarked url something [...]]]></description>
			<content:encoded><![CDATA[<p>There are <strong>no</strong> real ways to know for sure how many people go to your site from bookmarks, but a couple of ways</p>
<ul>
<li>(the usual) take a high %  (or even 100%) of unique WITHOUT any referrer data (that also are not a bot)</li>
<li>Make a &#8220;bookmark this&#8221; link, but make the bookmarked url something like &#8220;http://example.com/?camefrom=bookmark&#8221;. Then just do something like</li>
</ul>
<ul>
<li>if ($_GET['camefrom'] == &#8220;bookmark&#8221;)<br />
{<br />
// +1 to your stats thing counting bookmarks (database? etc)<br />
}</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/see-how-many-people-bookmark-yoursite/66/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spamming Myspace &#8211; some ideas on what to do</title>
		<link>http://london-seo.com/spamming-myspace-some-ideas-on-what-to-do/62/</link>
		<comments>http://london-seo.com/spamming-myspace-some-ideas-on-what-to-do/62/#comments</comments>
		<pubDate>Mon, 08 Jan 2007 18:35:03 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Adult Sites]]></category>
		<category><![CDATA[Link Development]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[New concepts]]></category>
		<category><![CDATA[Slightly Off Topic]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Webmastering Basics]]></category>

		<guid isPermaLink="false">http://london-seo.com/spamming-myspace-some-ideas-on-what-to-do/62/</guid>
		<description><![CDATA[Making money from Myspace is quite easy. It used to be easier but they have cracked down on spam. If you want to make sure they (probably) don&#8217;t remove your profile, make it look as crap as you can. Search for myspace layouts, put everything, glitter graphics, songs, the works. Upload a picture of an [...]]]></description>
			<content:encoded><![CDATA[<p>Making money from Myspace is quite easy. It used to be easier but they have cracked down on spam.</p>
<p>If you want to make sure they (probably) don&#8217;t remove your profile, make it look as crap as you can. Search for myspace layouts, put everything, glitter graphics, songs, the works. Upload a picture of an attractive girl, get a few friends, get some comments etc.</p>
<p>Now you have a few methods to make some money:</p>
<ul>
<li>Use the groups thing to make a group in your niche. Collect people who have a similar interest to what you are promoting/selling into a group. Use their search function to find people. Only bother adding people who are actually interested or at least your target market in/for your product.</li>
<li>Get lots and lots of friends. Use auto adders (Google for them, most you have to pay for). Don&#8217;t do too many at once. If I were you, I would set up 5-10 accounts now, occasionally login add 5-10 people. After a couple of months after it looks like you&#8217;re a regular user (not a spammer) then start mass adding. Don&#8217;t do too many, they do remove profiles that spam friend requests. Once you have all these friends, then send bullitens or send messages/comments saying something such as &#8220;Hey, talk to me on here&#8221;, here being a webcam site such as <a href="http://PussyCash.com/wmaster.asp?WID=422484258&#038;promocode=BCODET000010D_00000">IMLive</a> (affiliated link, through their company Pussy Cash. You can even get around $2 per free sign up there &#8211; it is easy money) etc.</li>
<li>Leave lots of comments with affiliated links. Ringtones etc. Make it seem you are not a spammer.</li>
</ul>
<p>A good way to get people who are interested in your product, is to do a google search like site:myspace.com &#8220;your keyword&#8221;</p>
<p>You can also get a load of backlinks, by spamming links on comments.</p>
<p>Let me know in the comments for your thoughts etc on spamming myspace.</p>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/spamming-myspace-some-ideas-on-what-to-do/62/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cron jobs without the email result or output</title>
		<link>http://london-seo.com/cronjob-without-email-result/63/</link>
		<comments>http://london-seo.com/cronjob-without-email-result/63/#comments</comments>
		<pubDate>Sun, 03 Dec 2006 21:56:20 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Slightly Off Topic]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Webmastering Basics]]></category>

		<guid isPermaLink="false">http://london-seo.com/cronjob-without-email-result/63/</guid>
		<description><![CDATA[Howdy If you want to do a cron job, but don&#8217;t want that email giving you the result, such as for example when doing a wget command, do this: wget –quiet –output-document output_filename http://www.urltoget.com/ It will still email you with errors, so if you want it to never email you, add this: >/dev/null 2>&#038;1 to [...]]]></description>
			<content:encoded><![CDATA[<p>Howdy</p>
<p>If you want to do a cron job, but don&#8217;t want that email giving you the result, such as for example when doing a wget command, do this:</p>
<p><strong> wget –quiet –output-document output_filename http://www.urltoget.com/</strong></p>
<p>It will still email you with errors, so if you want it to never email you, add this:</p>
<p><strong>>/dev/null 2>&#038;1</strong></p>
<p>to the end of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/cronjob-without-email-result/63/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to block pages from robots using robots.txt</title>
		<link>http://london-seo.com/hot-to-block-pages-from-bots-robotstxt/57/</link>
		<comments>http://london-seo.com/hot-to-block-pages-from-bots-robotstxt/57/#comments</comments>
		<pubDate>Sun, 26 Nov 2006 17:52:17 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Hosting and Hosts]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[robots.txt]]></category>

		<guid isPermaLink="false">http://london-seo.com/hot-to-block-pages-from-bots-robotstxt/57/</guid>
		<description><![CDATA[There are lots of reasons why you may want to do this &#8211; to protect your admin area, hide some nasty scripts or to save on bandwidth (yeah, i&#8217;ve heard it done&#8230;). Of course, all people have to do is look at your robots.txt and find out a load of directories that you don&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of reasons why you may want to do this &#8211; to protect your admin area, hide some nasty scripts or to save on bandwidth (yeah, i&#8217;ve heard it done&#8230;). Of course, all people have to do is look at your robots.txt and find out a load of directories that you don&#8217;t want found&#8230; (Read more to see full post)</p>
<p><span id="more-57"></span></p>
<p><strong>What is robots.txt</strong></p>
<p>I&#8217;ll let Wikipedia explain:</p>
<blockquote><p>The robots exclusion standard or robots.txt protocol is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a website. The information specifying the parts that should not be accessed is specified in a file called robots.txt in the top-level directory of the website.</p></blockquote>
<p>It is normally just found in your root directory, for example http://domain.com/robots.txt. Most robots will read it &#8211; some of the spammy robots or nasty ones won&#8217;t, and there isn&#8217;t much you can do about it (not related to robots.txt, anyway). You could use a htaccess or a script to block nasty bots, but that isn&#8217;t for this article.</p>
<p><strong>How to block all robots from all of your pages</strong></p>
<p>This is quite simple, however at this basic level I doubt you would want to use it much</p>
<blockquote><p>User-agent: *<br />
Disallow: /</p></blockquote>
<p><em>User-agent: *</em> includes all user agents (* is a wildcard &#8211; standing for anything, any length). There are many pages on the internet which will help you, such as this one with <a href="http://www.psychedelix.com/agents/index.shtml">a massive list of user agents</a>.</p>
<p><strong>User agent info:</strong><br />
Some common search engine user agents that you may be interested in are as follows:</p>
<ul>
<li>Main web search (some also image search):</li>
</ul>
<ul>
<li>Google: <em>googlebot</em></li>
<li>MSN: <em>msnbot</em></li>
<li>Yahoo: <em>yahoo-slurp</em></li>
<li>Ask: <em>teoma</em></li>
<li>Alexa: <em>ia_archiver</em></li>
</ul>
<li>Image search</li>
<ul>
<li>Google: <em>googlebot-image</em></li>
<li>MSN Pic search: <em>psbot</em></li>
</ul>
<p>So if you wanted to block just Alexa from all directories, you would use:</p>
<p style="margin-left: 40px">User-agent: ia_archiver<br />
Disallow: /</p>
<p><strong>How to block a certain directory (or more than one) using robots.txt</strong></p>
<p>This isn&#8217;t very different to the previous example. This will block all user agents to /private/ and /cgi-bin/</p>
<p style="margin-left: 40px">User-agent: *<br />
Disallow: /cgi-bin/<br />
Disallow: /private/</p>
<p><strong>Comments in robots.txt</strong></p>
<p>Comments in robots.txt are simply written after a &#8220;#&#8221; sign, for example:</p>
<p style="margin-left: 40px">User-agent: * #this is a comment here<br />
# another comment<br />
#<br />
# another one! robots.txt is so much fun&#8230;<br />
Disallow: /temp/</p>
<p><strong>Other things to add to robots.txt</strong></p>
<p>There has been a <a title="http://www.conman.org/people/spc/robots2.html" class="external text" href="http://www.conman.org/people/spc/robots2.html">Extended Standard for Robot Exclusion</a> proposed, adding features such as request rate (# of requests per # of seconds) and visit time (time that the bot should visit, such as 0400-0800). Some bots will follow it, but you can&#8217;t count on it (at the moment, anyway) being too handy. Here is a basic example of it in action.</p>
<p style="margin-left: 40px">User-agent: *<br />
Disallow: /temp/<br />
Request-rate: 1/3<br />
Visit-time: 0400-0800</p>
<p><strong>Further Reading/Related Links</strong></p>
<ul>
<li><a href="http://www.mcanerin.com/search-engine/robots-txt.htm">Robots.txt Generator</a> &#8211; a neat robots.txt generator</li>
<li><a href="http://www.webmasterworld.com/robots.txt">Robots.txt blog</a> on Webmaster world. Making very good use of its comments feature&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/hot-to-block-pages-from-bots-robotstxt/57/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the database connection error page in WordPress</title>
		<link>http://london-seo.com/how-to-change-the-database-connection-error-page-in-wordpress/44/</link>
		<comments>http://london-seo.com/how-to-change-the-database-connection-error-page-in-wordpress/44/#comments</comments>
		<pubDate>Sun, 15 Oct 2006 19:12:48 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Slightly Off Topic]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://london-seo.com/how-to-change-the-database-connection-error-page-in-wordpress/44/</guid>
		<description><![CDATA[You see them all the time when a page gets dugg on digg.com or suddenly becomes very popular - Can’t select database We were able to connect to the database server (which means your username and password is okay) but not able to select the xxxx database. * Are you sure it exists? * On [...]]]></description>
			<content:encoded><![CDATA[<p>You see them all the time when a page gets dugg on digg.com or suddenly becomes very popular -</p>
<blockquote><p>Can’t select database</p>
<p>We were able to connect to the database server (which means your username and password is okay) but not able to select the xxxx database.</p>
<p>* Are you sure it exists?<br />
* On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?</p>
<p>If you don&#8217;t know how to setup a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.</p></blockquote>
<p>Well recently I needed to make sure that if oen of my wordpress installs couldn&#8217;t connect or whatever that it showed a different page (well, different text). So if you want to do the same (at your own risk), open up wp-includes/wp-db.php and edit:</p>
<ul>
<li>line 46 (connecting to server)</li>
<li>line 66 (selecting the database)</li>
<li>you may also want to edit the html from around line 312</li>
</ul>
<p>Hope that helped you. Now digg me (just kidding &#8211; who wants this at the top of digg!) to prove that it works (although &#8211; of course <a href="http://london-seo.com/dreamhost-promo-codes/35/">my host</a> will cope with it ;). They have before)</p>
<p>Some ideas to put on your messages:</p>
<ul>
<li><strong>Tell them that something is wrong!</strong></li>
<li>Put a link to a Google cache (in the form of http://www.google.com/search?q=cache:http://www.example.com/)</li>
<li>Try the coralize site &#8211; in the form of http://www.example.com.nyud.net:8080/</li>
<li>Put a retry button/link</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/how-to-change-the-database-connection-error-page-in-wordpress/44/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A basic introduction to mod_rewrite.</title>
		<link>http://london-seo.com/a-basic-introduction-to-mod_rewrite/18/</link>
		<comments>http://london-seo.com/a-basic-introduction-to-mod_rewrite/18/#comments</comments>
		<pubDate>Mon, 04 Sep 2006 01:49:43 +0000</pubDate>
		<dc:creator>search engine optimiser</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SEO Basics 101]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://london-seo.com/a-basic-introduction-to-mod_rewrite/18/</guid>
		<description><![CDATA[A basic introduction to mod_rewrite. What is mod_rewrite? Mod_rewrite is a system for apache that lets you basically rewrite urls. It is quite advanced, while at the same time being quite simple. Why is it so important? It lets you change pages from something like viewnews.php?id=329579823948 to something like /viewnews/the-news-story-headline/. Of course, you will need [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A basic introduction to mod_rewrite.</strong></p>
<p><strong> What is mod_rewrite?</strong><br />
Mod_rewrite is a system for <span class="hm" id="misp_compose_1">apache</span> that lets you basically rewrite <span class="hm" id="misp_compose_2">urls</span>. It is quite advanced, while at the same time being quite simple.</p>
<p><strong> Why is it so important?</strong><br />
It lets you change pages from something like <em><span class="hm" id="misp_compose_3">viewnews</span>.<span class="hm" id="misp_compose_4">php</span>?id=329579823948</em> to something like <em>/<span class="hm" id="misp_compose_5">viewnews</span>/the-news-story-headline/</em>. Of course, you will need to update your <span class="hm" id="misp_compose_6">actuall</span> links (from id=&#8230; to the new ones). But the reason it is so good is because firstly, who can remember 329579823948? And who can remember the-news-story-headline? Additionally, it is a lot better for <span class="hm" id="misp_compose_7">seo</span> to have keywords in the <span class="hm" id="misp_compose_8">url</span>, and most times your page title / etc will have the keywords in it.</p>
<p><strong><span class="hm" id="misp_compose_9">Ok</span>, walk me through a simple example using mod_rewrite</strong><br />
<span class="hm" id="misp_compose_10">Ok</span>. We are going to do a very simple mod_rewrite first, one that doesn&#8217;t involve any parameters (no id= or whatever).</p>
<p>For example, say at the moment our page is:<br />
<em> http://example.com/about_us.html</em></p>
<p>We want it to be<br />
<em> http://example.com/about/</em></p>
<p>Firstly you will need to be using <span class="hm" id="misp_compose_11">apache</span>. Make a file called <em>.<span class="hm" id="misp_compose_12">htaccess</span></em>, and put it in your public html folder (same folder as index.<span class="hm" id="misp_compose_13">php</span>/index.html etc etc. In my case with my host, it would be <em>/london-<span class="hm" id="misp_compose_14">seo</span>.com/.<span class="hm" id="misp_compose_15">htaccess</span>. </em>Often it is something like <em>public_html</em>). You may have a bit of trouble making it in Windows. If you do, name the file <em>&#8220;.<span class="hm" id="misp_compose_16">htaccess</span>&#8220;</em> (with the quotation marks).</p>
<p>Now you wanna put in <em>.<span class="hm" id="misp_compose_17">htaccess</span></em> the following (first two lines are not always needed, depending on your server configuration):</p>
<p><em> Options +Indexes<br />
Options +<span class="hm" id="misp_compose_18">FollowSymlinks</span><br />
<span class="hm" id="misp_compose_19">RewriteEngine</span> on<br />
<span class="hm" id="misp_compose_20">RewriteBase</span> /<br />
<span class="hm" id="misp_compose_21">RewriteRule</span> ^about/$ about_us.html [L]</em></p>
<p>See, its pretty easy. The <em>^</em> just means that represents the start of the string, and <em>$</em> represents the end of the string. It is just regular expression stuff&#8230; You don&#8217;t need to worry about it too much for the time being. Note how the domain itself doesn&#8217;t matter (nothing about example.com is in there)</p>
<p>Now lets do a more complicated example. We want to change:<br />
<em> http://example.com/news.<span class="hm" id="misp_compose_22">php</span>?<span class="hm" id="misp_compose_23">newsid</span>=48672</em></p>
<p>to:<br />
<em> http://example.com/news/48672/</em></p>
<p>Well we would then put in the following code:<br />
<em><br />
Options +Indexes<br />
Options +<span class="hm" id="misp_compose_24">FollowSymlinks</span><br />
<span class="hm" id="misp_compose_25">RewriteEngine</span> on<br />
<span class="hm" id="misp_compose_26">RewriteBase</span> /<br />
<span class="hm" id="misp_compose_27">RewriteRule</span> ^news/(.*)/$ news.<span class="hm" id="misp_compose_28">php</span>?<span class="hm" id="misp_compose_29">newsid</span>=$1 [L]<br />
</em><br />
The<em> $1</em> indicates that it should replace whatever was in the first occurrence of <em>(.*) </em>(note &#8211; there can be more than one <em>(.*)</em>.)</p>
<p>Well, that&#8217;s it for a basic mod_rewrite tutorial. Ideally you don&#8217;t wanna have id&#8217;s that relate just to a number, but you want some keywords. A good way to do this is to in your news.<span class="hm" id="misp_compose_33">php</span> only use the <span class="hm" id="misp_compose_34">newsid</span>=xx, but add in some extra, so you could have:</p>
<p><em> http://example.com/news/mod-rewrite-tutorial/89487/</em></p>
<p>The code for that would be:</p>
<p><em> Options +Indexes<br />
Options +<span class="hm" id="misp_compose_35">FollowSymlinks</span><br />
<span class="hm" id="misp_compose_36">RewriteEngine</span> on<br />
<span class="hm" id="misp_compose_37">RewriteBase</span> /<br />
<span class="hm" id="misp_compose_38">RewriteRule</span> ^news/(.*)/(.*)/$ news.<span class="hm" id="misp_compose_39">php</span>?<span class="hm" id="misp_compose_40">newsid</span>=$2 [L]</em></p>
<p>Notice how there is no &#8220;<em>$1</em>&#8220;. As you get more advanced you will get used to this kinda stuff. Again, this is only a basic tutorial, <span class="hm" id="misp_compose_41">there is</span> a lot more to it, but this will get you started.</p>
]]></content:encoded>
			<wfw:commentRss>http://london-seo.com/a-basic-introduction-to-mod_rewrite/18/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
