<?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>Dave Stopher SEO &#187; .htaccess code</title>
	<atom:link href="http://www.davestopherseo.co.uk/category/htaccess-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davestopherseo.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 21:54:40 +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>Redirect multiple Pages to One Page</title>
		<link>http://www.davestopherseo.co.uk/redirect-multiple-pages-to-one-page-116/</link>
		<comments>http://www.davestopherseo.co.uk/redirect-multiple-pages-to-one-page-116/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 07:59:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.htaccess code]]></category>

		<guid isPermaLink="false">http://www.dave-s.net/?p=116</guid>
		<description><![CDATA[I am a self admitted htaccess rookie sometimes, although I have a very good idea of how to do it now. So from this I have generated different section of code that will work when you want to redirect multiple pages to just one page or domain. Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} !^/index \.php$ [...]]]></description>
			<content:encoded><![CDATA[<p>I am a self admitted htaccess rookie sometimes, although I have a very good idea of how to do it now.</p>
<p>So from this I have generated different section of code that will work when you want to redirect multiple pages to just one page or domain.</p>
<p><span style="color: #0000ff;">Options +FollowSymLinks</span></p>
<p><span style="color: #0000ff;">RewriteEngine on<br />
RewriteCond %{REQUEST_URI} !^/index \.php$</span></p>
<p><span style="color: #0000ff;">RewriteCond %{REQUEST_URI} !^(.*)\.html$</span></p>
<p><span style="color: #0000ff;">RewriteCond %{REQUEST_URI} !^(.*)\.css$</span></p>
<p><span style="color: #0000ff;">RewriteCond %{REQUEST_URI} !^(.*)\.jpg$</span></p>
<p><span style="color: #0000ff;">RewriteCond %{REQUEST_URI} !^(.*)\.gif$</span></p>
<p><span style="color: #0000ff;">RewriteRule ^(.*)$ http://www.my-football-blogs.co.uk/ [L,NC,R=301]</span></p>
<p><span style="color: #0000ff;"><span style="color: #000000;">This has worked for me in the past on one of my websites and below is one I used on a wordpress blog to a football forum</span><br />
</span></p>
<p><span style="color: #0000ff;">Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteRule (.*) http://www.footballforum.org.uk/ [R=301,L]</span></p>
<p><span style="color: #0000ff;"><span style="color: #000000;">If you do have any trouble with this please give me a should and I will look into why it is not working with your website.</span></span></p>
<p><span style="color: #0000ff;"><span style="color: #000000;">Please Remember these go in the .htaccess files and are for a apache server.<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davestopherseo.co.uk/redirect-multiple-pages-to-one-page-116/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stopping Google From Seeing Your Secure Pages</title>
		<link>http://www.davestopherseo.co.uk/stopping-google-from-seeing-your-secure-pages-54/</link>
		<comments>http://www.davestopherseo.co.uk/stopping-google-from-seeing-your-secure-pages-54/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 20:43:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.htaccess code]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[secure pages]]></category>

		<guid isPermaLink="false">http://www.dave-s.net/?p=54</guid>
		<description><![CDATA[I have come up against this small probelm lately. I wanted to rewrite one of my sites so that my https pages would not get cached by google. There is one easy wsay to do this that work for me. What you need to do is first make a second robots file and call it [...]]]></description>
			<content:encoded><![CDATA[<p>I have come up against this small probelm lately. I wanted to rewrite one of my sites so that my https pages would not get cached by google.</p>
<p>There is one easy wsay to do this that work for me. What you need to do is first make a second robots file and call it whatever you want for this example I will call it <strong>Robots_ssl.txt</strong></p>
<p>With this robots file place the below bit of script.</p>
<p><strong>user-agent: *</strong></p>
<p><strong>Disallow: /</strong></p>
<p>This will prevent any spiders from going on your site.</p>
<p>Now the bit that tell the spiders if they follow this rule or not. This bit of script needs to be placed in the .htacces file on the server. (be warned that this only works on an apache server).</p>
<p><strong>RewriteEngine on<br />
Options +FollowSymlinks<br />
RewriteCond %{SERVER_PORT} ^443$<br />
RewriteRule ^robots.txt$ robots_ssl.txt</strong></p>
<p>This should tell the spiders that if the pages is a https(server 443) then follow the robots file shich is called robots_ssl.txt.</p>
<p>So this therefore will stop any pages from being cached. If you have already got pages cached however you just need to register your https site with google webmaster tools and then you need to remove the site from the listing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davestopherseo.co.uk/stopping-google-from-seeing-your-secure-pages-54/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
