<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 4 Steps to Make Your PHP Site Indexed Properly</title>
	<atom:link href="http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/</link>
	<description>Search Engine Marketing and Optimization Solutions</description>
	<lastBuildDate>Tue, 19 Jan 2010 17:48:34 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Visitor327</title>
		<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/comment-page-1/#comment-7003</link>
		<dc:creator>Visitor327</dc:creator>
		<pubDate>Wed, 24 Oct 2007 20:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplesem.com/blog/2006/4-steps-to-make-your-php-site-indexed-properly/#comment-7003</guid>
		<description>I have visited your site 344-times</description>
		<content:encoded><![CDATA[<p>I have visited your site 344-times</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas Labryszewski</title>
		<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/comment-page-1/#comment-21</link>
		<dc:creator>Lukas Labryszewski</dc:creator>
		<pubDate>Mon, 15 May 2006 19:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplesem.com/blog/2006/4-steps-to-make-your-php-site-indexed-properly/#comment-21</guid>
		<description>I do something like this in my .htaccess file:

I commented it for clarification.

This way I have full control over Search Engine Friendly URLs in my PHP and can do whatever I need dynamically, instead of modifying .htaccess every time I need to add a module.  main.php is my controller.

RewriteEngine On
# If the requested local file path is !NOT a regular file (-f) in the file system
RewriteCond %{REQUEST_FILENAME} !-f
# If the requested local file path is !NOT a directory (-d) in the file system
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite Any string with 0 characters or more and replace it with index.php
RewriteRule ^(.*) main.php [PT]</description>
		<content:encoded><![CDATA[<p>I do something like this in my .htaccess file:</p>
<p>I commented it for clarification.</p>
<p>This way I have full control over Search Engine Friendly URLs in my PHP and can do whatever I need dynamically, instead of modifying .htaccess every time I need to add a module.  main.php is my controller.</p>
<p>RewriteEngine On<br />
# If the requested local file path is !NOT a regular file (-f) in the file system<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
# If the requested local file path is !NOT a directory (-d) in the file system<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
# Rewrite Any string with 0 characters or more and replace it with index.php<br />
RewriteRule ^(.*) main.php [PT]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate K</title>
		<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/comment-page-1/#comment-20</link>
		<dc:creator>Nate K</dc:creator>
		<pubDate>Mon, 15 May 2006 14:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplesem.com/blog/2006/4-steps-to-make-your-php-site-indexed-properly/#comment-20</guid>
		<description>This is a very good beginning point to creating SEF URLS. There are also several other options, depending on the language you are using to create these urls. 

I use this approach on every site I create for several reasons:

1. Its very flexible.
2. Though flexible, its very strict and secure. If the URL does not match the regex, then it gets a 404. This is a good front to validate and protect against query string injection.
3. Control of the request/routing. I can specify 301/302 and even 404 if necessary and then point them accordingly.
4. Mapping URLS. I have re-build several sites and am able to re-route the old indexed URLS with a 302 to let search engines know the page has moved. This helps for those who have pages bookmarked or search engines who have pages cached. I can also map a page with two different patterns. IE (www.barbourbooks.com). The book detail page can be accessed with its title friendly URL, or by putting in the ISBN of the book directly (though they must match valid ISBNs, as well as be in our stock).
5. Programming language doesnt matter with this approach. I can map some pages to PHP, ASP, CFM, JSP, etc - or whatever I want (if you so choose) and not have to change the url structure or extensions. So a system switch from one programming language to another will not be affected.

Nice read!

Peace,
Nate</description>
		<content:encoded><![CDATA[<p>This is a very good beginning point to creating SEF URLS. There are also several other options, depending on the language you are using to create these urls. </p>
<p>I use this approach on every site I create for several reasons:</p>
<p>1. Its very flexible.<br />
2. Though flexible, its very strict and secure. If the URL does not match the regex, then it gets a 404. This is a good front to validate and protect against query string injection.<br />
3. Control of the request/routing. I can specify 301/302 and even 404 if necessary and then point them accordingly.<br />
4. Mapping URLS. I have re-build several sites and am able to re-route the old indexed URLS with a 302 to let search engines know the page has moved. This helps for those who have pages bookmarked or search engines who have pages cached. I can also map a page with two different patterns. IE (www.barbourbooks.com). The book detail page can be accessed with its title friendly URL, or by putting in the ISBN of the book directly (though they must match valid ISBNs, as well as be in our stock).<br />
5. Programming language doesnt matter with this approach. I can map some pages to PHP, ASP, CFM, JSP, etc &#8211; or whatever I want (if you so choose) and not have to change the url structure or extensions. So a system switch from one programming language to another will not be affected.</p>
<p>Nice read!</p>
<p>Peace,<br />
Nate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Miles Rausch DootDoot Weblog Page Website By Awayken &#187; Blog Archive &#187; links for 2006-05-14</title>
		<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/comment-page-1/#comment-19</link>
		<dc:creator>The Miles Rausch DootDoot Weblog Page Website By Awayken &#187; Blog Archive &#187; links for 2006-05-14</dc:creator>
		<pubDate>Sun, 14 May 2006 18:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplesem.com/blog/2006/4-steps-to-make-your-php-site-indexed-properly/#comment-19</guid>
		<description>[...] 4 Steps to Make Your PHP Site Indexed Properly (tags: php development) [...]</description>
		<content:encoded><![CDATA[<p>[...] 4 Steps to Make Your PHP Site Indexed Properly (tags: php development) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Stevens</title>
		<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/comment-page-1/#comment-18</link>
		<dc:creator>Sam Stevens</dc:creator>
		<pubDate>Fri, 12 May 2006 15:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplesem.com/blog/2006/4-steps-to-make-your-php-site-indexed-properly/#comment-18</guid>
		<description>While it may have been implied, it would also be good to mention that &quot;directory-1.html&quot; could be further optimized by using a keyword or two in the file name, eg. &quot;blue-widgets.html&quot;.</description>
		<content:encoded><![CDATA[<p>While it may have been implied, it would also be good to mention that &#8220;directory-1.html&#8221; could be further optimized by using a keyword or two in the file name, eg. &#8220;blue-widgets.html&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KesheR</title>
		<link>http://simplesem.com/2006/4-steps-to-make-your-php-site-indexed-properly/comment-page-1/#comment-17</link>
		<dc:creator>KesheR</dc:creator>
		<pubDate>Fri, 12 May 2006 12:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplesem.com/blog/2006/4-steps-to-make-your-php-site-indexed-properly/#comment-17</guid>
		<description>mmmmmm... interesting, thanks</description>
		<content:encoded><![CDATA[<p>mmmmmm&#8230; interesting, thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
