<?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: Clean URLs Using Apache&#8217;s mod_rewrite and PHP &#8211; Beginner&#8217;s Tutorial</title>
	<atom:link href="http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/</link>
	<description>Better use of the web for everybody</description>
	<lastBuildDate>Fri, 19 Nov 2010 14:41:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Joe</title>
		<link>http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/comment-page-1/#comment-72152</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 19 Nov 2010 14:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.logon2.com.au/blog/archive/tips/91/#comment-72152</guid>
		<description>Question. I used your method and it works great.  When I added code to redirect non-www to www I always kicks me right to the home page.  Am I putting it in the wrong order?  here is my code.....

RewriteEngine on

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTP_HOST} ^freephone2phone\.com
RewriteRule ^(.*)$ http://www.freephone2phone.com/$1 [r=301,nc] 

RewriteCond %{HTTP_HOST} ^freephonetophone\.com
RewriteRule ^(.*)$ http://www.freephone2phone.com/$1 [r=301,nc] 

RewriteCond %{HTTP_HOST} ^www.freephonetophone\.com
RewriteRule ^(.*)$ http://www.freephone2phone.com/$1 [r=301,nc]</description>
		<content:encoded><![CDATA[<p>Question. I used your method and it works great.  When I added code to redirect non-www to www I always kicks me right to the home page.  Am I putting it in the wrong order?  here is my code&#8230;..</p>
<p>RewriteEngine on</p>
<p>RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]</p>
<p>RewriteCond %{HTTP_HOST} ^freephone2phone\.com<br />
RewriteRule ^(.*)$ <a href="http://www.freephone2phone.com/$1" rel="nofollow">http://www.freephone2phone.com/$1</a> [r=301,nc] </p>
<p>RewriteCond %{HTTP_HOST} ^freephonetophone\.com<br />
RewriteRule ^(.*)$ <a href="http://www.freephone2phone.com/$1" rel="nofollow">http://www.freephone2phone.com/$1</a> [r=301,nc] </p>
<p>RewriteCond %{HTTP_HOST} ^www.freephonetophone\.com<br />
RewriteRule ^(.*)$ <a href="http://www.freephone2phone.com/$1" rel="nofollow">http://www.freephone2phone.com/$1</a> [r=301,nc]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: babysitter</title>
		<link>http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/comment-page-1/#comment-21853</link>
		<dc:creator>babysitter</dc:creator>
		<pubDate>Tue, 24 Mar 2009 01:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.logon2.com.au/blog/archive/tips/91/#comment-21853</guid>
		<description>this is my .htaccess file but when I write a not real folder i get file not found, why?:
#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.

  Order allow,deny


# Don&#039;t show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Force simple error message for requests for non-existent favicon.ico.

  # There is no end quote below, for compatibility with Apache 1.3.
  ErrorDocument 404 &quot;The requested file favicon.ico was not found.


# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1.

  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0


# PHP 4, Apache 2.

  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0


# PHP 5, Apache 1 and 2.

  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0


# Requires mod_expires to be enabled.

  # Enable expirations.
  ExpiresActive On

  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600

  # Do not cache dynamically generated pages.
  ExpiresByType text/html A1


# Various rewrite rules.

  RewriteEngine on

  # If your site can be accessed both with and without the &#039;www.&#039; prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the &#039;www.&#039; prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the &#039;www.&#039; prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # adapt and uncomment the following:
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the &#039;www.&#039; prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment and adapt the following:
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  RewriteBase /

  # Rewrite URLs of the form &#039;x&#039; to the form &#039;index.php?q=x&#039;.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?q=$1 [L]


# $Id: .htaccess,v 1.90.2.3 2008/12/10 20:04:08 goba Exp $


order allow,deny
allow from all


deny from 150.70.84.155
deny from 150.70.84.45</description>
		<content:encoded><![CDATA[<p>this is my .htaccess file but when I write a not real folder i get file not found, why?:<br />
#<br />
# Apache/PHP/Drupal settings:<br />
#</p>
<p># Protect files and directories from prying eyes.</p>
<p>  Order allow,deny</p>
<p># Don&#8217;t show directory listings for URLs which map to a directory.<br />
Options -Indexes</p>
<p># Follow symbolic links in this directory.<br />
Options +FollowSymLinks</p>
<p># Make Drupal handle any 404 errors.<br />
ErrorDocument 404 /index.php</p>
<p># Force simple error message for requests for non-existent favicon.ico.</p>
<p>  # There is no end quote below, for compatibility with Apache 1.3.<br />
  ErrorDocument 404 &#8220;The requested file favicon.ico was not found.</p>
<p># Set the default handler.<br />
DirectoryIndex index.php</p>
<p># Override PHP settings. More in sites/default/settings.php<br />
# but the following cannot be changed at runtime.</p>
<p># PHP 4, Apache 1.</p>
<p>  php_value magic_quotes_gpc                0<br />
  php_value register_globals                0<br />
  php_value session.auto_start              0<br />
  php_value mbstring.http_input             pass<br />
  php_value mbstring.http_output            pass<br />
  php_value mbstring.encoding_translation   0</p>
<p># PHP 4, Apache 2.</p>
<p>  php_value magic_quotes_gpc                0<br />
  php_value register_globals                0<br />
  php_value session.auto_start              0<br />
  php_value mbstring.http_input             pass<br />
  php_value mbstring.http_output            pass<br />
  php_value mbstring.encoding_translation   0</p>
<p># PHP 5, Apache 1 and 2.</p>
<p>  php_value magic_quotes_gpc                0<br />
  php_value register_globals                0<br />
  php_value session.auto_start              0<br />
  php_value mbstring.http_input             pass<br />
  php_value mbstring.http_output            pass<br />
  php_value mbstring.encoding_translation   0</p>
<p># Requires mod_expires to be enabled.</p>
<p>  # Enable expirations.<br />
  ExpiresActive On</p>
<p>  # Cache all files for 2 weeks after access (A).<br />
  ExpiresDefault A1209600</p>
<p>  # Do not cache dynamically generated pages.<br />
  ExpiresByType text/html A1</p>
<p># Various rewrite rules.</p>
<p>  RewriteEngine on</p>
<p>  # If your site can be accessed both with and without the &#8216;www.&#8217; prefix, you<br />
  # can use one of the following settings to redirect users to your preferred<br />
  # URL, either WITH or WITHOUT the &#8216;www.&#8217; prefix. Choose ONLY one option:<br />
  #<br />
  # To redirect all users to access the site WITH the &#8216;www.&#8217; prefix,<br />
  # (<a href="http://example.com/.." rel="nofollow">http://example.com/..</a>. will be redirected to <a href="http://www.example.com/.." rel="nofollow">http://www.example.com/..</a>.)<br />
  # adapt and uncomment the following:<br />
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]<br />
  # RewriteRule ^(.*)$ <a href="http://www.example.com/$1" rel="nofollow">http://www.example.com/$1</a> [L,R=301]<br />
  #<br />
  # To redirect all users to access the site WITHOUT the &#8216;www.&#8217; prefix,<br />
  # (<a href="http://www.example.com/.." rel="nofollow">http://www.example.com/..</a>. will be redirected to <a href="http://example.com/.." rel="nofollow">http://example.com/..</a>.)<br />
  # uncomment and adapt the following:<br />
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]<br />
  # RewriteRule ^(.*)$ <a href="http://example.com/$1" rel="nofollow">http://example.com/$1</a> [L,R=301]</p>
<p>  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a<br />
  # VirtualDocumentRoot and the rewrite rules are not working properly.<br />
  # For example if your site is at <a href="http://example.com/drupal" rel="nofollow">http://example.com/drupal</a> uncomment and<br />
  # modify the following line:<br />
  # RewriteBase /drupal<br />
  #<br />
  # If your site is running in a VirtualDocumentRoot at <a href="http://example.com/" rel="nofollow">http://example.com/</a>,<br />
  # uncomment the following line:<br />
  RewriteBase /</p>
<p>  # Rewrite URLs of the form &#8216;x&#8217; to the form &#8216;index.php?q=x&#8217;.<br />
  RewriteCond %{REQUEST_FILENAME} !-f<br />
  RewriteCond %{REQUEST_FILENAME} !-d<br />
   RewriteRule ^(.*)$ index.php?q=$1 [L]</p>
<p># $Id: .htaccess,v 1.90.2.3 2008/12/10 20:04:08 goba Exp $</p>
<p>order allow,deny<br />
allow from all</p>
<p>deny from 150.70.84.155<br />
deny from 150.70.84.45</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IDIOMS development &#187; Blog Archive &#187; Front end research links</title>
		<link>http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/comment-page-1/#comment-389</link>
		<dc:creator>IDIOMS development &#187; Blog Archive &#187; Front end research links</dc:creator>
		<pubDate>Sat, 16 Feb 2008 23:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.logon2.com.au/blog/archive/tips/91/#comment-389</guid>
		<description>[...] Basic rewriting: http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Basic rewriting: <a href="http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/" rel="nofollow">http://www.logon2.com.au/blog/archive/web-design/php-apache-mod-rewrite-tutorial/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

