<?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: Htaccess, Apache, And Rewrites! Oh, My!</title>
	<atom:link href="http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/</link>
	<description></description>
	<pubDate>Sun, 05 Jul 2009 00:23:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matei</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39843</link>
		<dc:creator>Matei</dc:creator>
		<pubDate>Sat, 27 Jun 2009 10:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39843</guid>
		<description>Hello!
I need something like Michel
*************************************************
These are the currently pages in my website
*************************************************
/home.php
/about.php
/portfolio.php
/services.php
/contact.php

************************************************
and i want a directory structure like this:
*************************************************
/home/
/about/
/portfolio/
/services/
contact/

I tried something like this:

#Services
RewriteRule ^servicii/$ servicii.php [L]

and it's not working.

I would appreciate your help!</description>
		<content:encoded><![CDATA[<p>Hello!<br />
I need something like Michel<br />
*************************************************<br />
These are the currently pages in my website<br />
*************************************************<br />
/home.php<br />
/about.php<br />
/portfolio.php<br />
/services.php<br />
/contact.php</p>
<p>************************************************<br />
and i want a directory structure like this:<br />
*************************************************<br />
/home/<br />
/about/<br />
/portfolio/<br />
/services/<br />
contact/</p>
<p>I tried something like this:</p>
<p>#Services<br />
RewriteRule ^servicii/$ servicii.php [L]</p>
<p>and it&#8217;s not working.</p>
<p>I would appreciate your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39599</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Fri, 19 Jun 2009 11:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39599</guid>
		<description>I need help on this, too.  I have a problem, that I can't find the answer to anywhere.  We have an SSL certificate that only secures the "www." version of the domain name, yet https links to the site (without the www prefix) that are indexed in Google.

I can easily get the www put back in for http traffic (see http://bradworthley.com/about.htm ) however, if you go to https://bradworthley.com/about.htm, it goes through the SSL check FIRST, before even going through the commands to rewrite the URL.

Here is the code I'm using.  I'm very new at this, so it is quite a mess...  some of it is commented out, since I've been swapping things in and out to test -- and you'll also see redundant code -- just trying different things.  All I can say is that none of this is doing the trick!

&lt;code&gt;&lt;br /&gt;
php_value upload_max_filesize 100000000&lt;br /&gt;
php_value post_max_size 100M&lt;br /&gt;
AddType application/x-httpd-php .php .html .htm&lt;br /&gt;
Options +FollowSymLinks&lt;br /&gt;
RewriteEngine on&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteCond %{HTTPS} =on&lt;br /&gt;
RewriteRule /about.htm http://www.bradworthley.com/about.htm [R=301,L]&lt;br /&gt;
RewriteCond %{HTTP_HOST} !^www\.[a-z-]+\.[a-z]{2,6} [NC]&lt;br /&gt;
RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$&#160;&#160;&#160;&#160; [NC]&lt;br /&gt;
RewriteRule ^/(.*)$ http://%1/$1 [R=301,L]&lt;br /&gt;
RewriteCond %{HTTP_HOST} !^www\.bradworthley\.com$ [NC]&lt;br /&gt;
RewriteRule ^(.*)$ http://www.bradworthley.com/$1 [R=301,L]&lt;br /&gt;
RewriteCond %{HTTP_HOST} ^bradworthley\.com$ [NC]&lt;br /&gt;
RewriteRule ^(.*)$ https://www.bradworthley.com/$1 [R=permanent,L]&lt;br /&gt;
&#160;&lt;br /&gt;
# Redirect 301 https://bradworthley.com/leadership-development.htm https://www.bradworthley.com/leadership-development.htm&lt;br /&gt;
# RewriteEngine on&lt;br /&gt;
# RewriteBase /&lt;br /&gt;
# RewriteCond %{HTTP_HOST} !^www\.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [NC]&lt;br /&gt;
# RewriteCond %{HTTP_HOST} ^([^.]+\.[a-z]{2,6})$ [NC]&lt;br /&gt;
# RewriteRule ^(.*)$&#160;&#160;&#160;&#160;&#160;&#160; https://www.%1/$1&#160;&#160;&#160;&#160;&#160;&#160;[R=301,L]&lt;br /&gt;
# &lt;br /&gt;
# RewriteRule ^ - [E=via:http]&lt;br /&gt;
# RewriteCond %{HTTPS} on&lt;br /&gt;
# RewriteRule ^ - [E=via:https]&lt;br /&gt;
# RewriteCond %{HTTP_HOST} !^www&lt;br /&gt;
# RewriteRule (.*) %{ENV:via}://www.%{HTTP_HOST}/$1 [L,R=301]&lt;br /&gt;
# &lt;br /&gt;
# Redirect 301 /leadership-development.htm https://www.bradworthley.com/leadership-development.htm&lt;br /&gt;
# &lt;br /&gt;
# RewriteCond %{SERVER_PORT} eq 443&lt;br /&gt;
# RewriteRule (.*) https://www.%{HTTP_HOST}/$1&lt;br /&gt;
&#160;&lt;br /&gt;
# RewriteCond %{HTTPS}=on &lt;br /&gt;
# RewriteRule ^(.*)$ https://www.bradworthley.com/$1 [R=301,L]&lt;br /&gt;
# &lt;br /&gt;
# RewriteCond %{HTTPS}=on&lt;br /&gt;
# RewriteCond %{SERVER_PORT} ^443$&lt;br /&gt;
# RewriteCond %{HTTP_HOST} !^www&lt;br /&gt;
# RewriteRule (.*)$ https://www.bradworthley.com/$1 [R=301,L]&lt;br /&gt;
&#160;&lt;br /&gt;
RewriteCond %{HTTPS} =on&lt;br /&gt;
RewriteCond %{REQUEST_URI} !^/store&lt;br /&gt;
RewriteCond %{REQUEST_URI} !^www&lt;br /&gt;
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&lt;br /&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I need help on this, too.  I have a problem, that I can&#8217;t find the answer to anywhere.  We have an SSL certificate that only secures the &#8220;www.&#8221; version of the domain name, yet https links to the site (without the www prefix) that are indexed in Google.</p>
<p>I can easily get the www put back in for http traffic (see <a href="http://bradworthley.com/about.htm" rel="nofollow">http://bradworthley.com/about.htm</a> ) however, if you go to <a href="https://bradworthley.com/about.htm" rel="nofollow">https://bradworthley.com/about.htm</a>, it goes through the SSL check FIRST, before even going through the commands to rewrite the URL.</p>
<p>Here is the code I&#8217;m using.  I&#8217;m very new at this, so it is quite a mess&#8230;  some of it is commented out, since I&#8217;ve been swapping things in and out to test &#8212; and you&#8217;ll also see redundant code &#8212; just trying different things.  All I can say is that none of this is doing the trick!</p>
<p><code><br />
php_value upload_max_filesize 100000000<br />
php_value post_max_size 100M<br />
AddType application/x-httpd-php .php .html .htm<br />
Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteBase /<br />
RewriteCond %{HTTPS} =on<br />
RewriteRule /about.htm <a href="http://www.bradworthley.com/about.htm" rel="nofollow">http://www.bradworthley.com/about.htm</a> [R=301,L]<br />
RewriteCond %{HTTP_HOST} !^www\.[a-z-]+\.[a-z]{2,6} [NC]<br />
RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$&nbsp;&nbsp;&nbsp;&nbsp; [NC]<br />
RewriteRule ^/(.*)$ <a href="http://%1/$1" rel="nofollow">http://%1/$1</a> [R=301,L]<br />
RewriteCond %{HTTP_HOST} !^www\.bradworthley\.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://www.bradworthley.com/$1" rel="nofollow">http://www.bradworthley.com/$1</a> [R=301,L]<br />
RewriteCond %{HTTP_HOST} ^bradworthley\.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="https://www.bradworthley.com/$1" rel="nofollow">https://www.bradworthley.com/$1</a> [R=permanent,L]<br />
&nbsp;<br />
# Redirect 301 <a href="https://bradworthley.com/leadership-development.htm" rel="nofollow">https://bradworthley.com/leadership-development.htm</a> <a href="https://www.bradworthley.com/leadership-development.htm" rel="nofollow">https://www.bradworthley.com/leadership-development.htm</a><br />
# RewriteEngine on<br />
# RewriteBase /<br />
# RewriteCond %{HTTP_HOST} !^www\.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [NC]<br />
# RewriteCond %{HTTP_HOST} ^([^.]+\.[a-z]{2,6})$ [NC]<br />
# RewriteRule ^(.*)$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://www.%1/$1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;R=301,L" rel="nofollow">https://www.%1/$1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;R=301,L</a><br />
# <br />
# RewriteRule ^ - [E=via:http]<br />
# RewriteCond %{HTTPS} on<br />
# RewriteRule ^ - [E=via:https]<br />
# RewriteCond %{HTTP_HOST} !^www<br />
# RewriteRule (.*) %{ENV:via}://www.%{HTTP_HOST}/$1 [L,R=301]<br />
# <br />
# Redirect 301 /leadership-development.htm <a href="https://www.bradworthley.com/leadership-development.htm" rel="nofollow">https://www.bradworthley.com/leadership-development.htm</a><br />
# <br />
# RewriteCond %{SERVER_PORT} eq 443<br />
# RewriteRule (.*) <a href="https://www.%" rel="nofollow">https://www.%</a>{HTTP_HOST}/$1<br />
&nbsp;<br />
# RewriteCond %{HTTPS}=on <br />
# RewriteRule ^(.*)$ <a href="https://www.bradworthley.com/$1" rel="nofollow">https://www.bradworthley.com/$1</a> [R=301,L]<br />
# <br />
# RewriteCond %{HTTPS}=on<br />
# RewriteCond %{SERVER_PORT} ^443$<br />
# RewriteCond %{HTTP_HOST} !^www<br />
# RewriteRule (.*)$ <a href="https://www.bradworthley.com/$1" rel="nofollow">https://www.bradworthley.com/$1</a> [R=301,L]<br />
&nbsp;<br />
RewriteCond %{HTTPS} =on<br />
RewriteCond %{REQUEST_URI} !^/store<br />
RewriteCond %{REQUEST_URI} !^www<br />
RewriteRule ^(.*)$ <a href="http://%" rel="nofollow">http://%</a>{HTTP_HOST}%{REQUEST_URI} [R=301,L]<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39426</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 11 Jun 2009 21:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39426</guid>
		<description>hmm, I am using the canonical plugin for seo. 
There appears to be an option for 
Force trailing slash to canonical URL's yes/no (default is yes)

This was set to yes, but the normal URL's dont have a slash so i think this should be no, I will change it and see if it helps.</description>
		<content:encoded><![CDATA[<p>hmm, I am using the canonical plugin for seo.<br />
There appears to be an option for<br />
Force trailing slash to canonical URL&#8217;s yes/no (default is yes)</p>
<p>This was set to yes, but the normal URL&#8217;s dont have a slash so i think this should be no, I will change it and see if it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39423</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 11 Jun 2009 17:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39423</guid>
		<description>Have you tried going to System, Configuration, Catalog, Catalog, and then going to the Search Enging Optimization section of Magento in the backend? There's a spot to set the product and category URL suffix. What if you use a trailing slash there instead of the standard .html?</description>
		<content:encoded><![CDATA[<p>Have you tried going to System, Configuration, Catalog, Catalog, and then going to the Search Enging Optimization section of Magento in the backend? There&#8217;s a spot to set the product and category URL suffix. What if you use a trailing slash there instead of the standard .html?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39422</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 11 Jun 2009 17:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39422</guid>
		<description>I have an issue with trailing slashes that messes up google anlaytics and possibly the google index.

A magento cms page such as this
http://www.usapoolpros.com/how-to-clean-a-green-pool
can be also see as
http://www.usapoolpros.com/how-to-clean-a-green-pool/

It shows up both ways in the index and I cant quite figure out a rewrite rule around this issue, i tried a few variations from the above but it seems to mess up the style sheets.

Any ideas?</description>
		<content:encoded><![CDATA[<p>I have an issue with trailing slashes that messes up google anlaytics and possibly the google index.</p>
<p>A magento cms page such as this<br />
<a href="http://www.usapoolpros.com/how-to-clean-a-green-pool" rel="nofollow">http://www.usapoolpros.com/how-to-clean-a-green-pool</a><br />
can be also see as<br />
<a href="http://www.usapoolpros.com/how-to-clean-a-green-pool/" rel="nofollow">http://www.usapoolpros.com/how-to-clean-a-green-pool/</a></p>
<p>It shows up both ways in the index and I cant quite figure out a rewrite rule around this issue, i tried a few variations from the above but it seems to mess up the style sheets.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39406</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Thu, 11 Jun 2009 02:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39406</guid>
		<description>HI Kyle.  My original site was www.dmj.fm  Since then we wanted a blog layout (all the sites are in Japanese I am sorry) Now when you type in www.dmj.fm the url changes to http://junco-cheep.seesaa.net/?1240825471  if I drop the ?1240825471 I can get the same page, but I want that blog to show www.dmj.fm

Any ideas?</description>
		<content:encoded><![CDATA[<p>HI Kyle.  My original site was <a href="http://www.dmj.fm" rel="nofollow">http://www.dmj.fm</a>  Since then we wanted a blog layout (all the sites are in Japanese I am sorry) Now when you type in <a href="http://www.dmj.fm" rel="nofollow">http://www.dmj.fm</a> the url changes to <a href="http://junco-cheep.seesaa.net/?1240825471" rel="nofollow">http://junco-cheep.seesaa.net/?1240825471</a>  if I drop the ?1240825471 I can get the same page, but I want that blog to show <a href="http://www.dmj.fm" rel="nofollow">http://www.dmj.fm</a></p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Howard</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39197</link>
		<dc:creator>John Howard</dc:creator>
		<pubDate>Tue, 02 Jun 2009 14:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39197</guid>
		<description>My Gawd, someone who can explain mod rewrite in clear and concise terms.  Many thanks!</description>
		<content:encoded><![CDATA[<p>My Gawd, someone who can explain mod rewrite in clear and concise terms.  Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 7 Great .htaccess Tutorials</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-39187</link>
		<dc:creator>7 Great .htaccess Tutorials</dc:creator>
		<pubDate>Tue, 02 Jun 2009 01:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-39187</guid>
		<description>[...] 2. .htaccess, Apache, and Rewrites! Oh, my! [...]</description>
		<content:encoded><![CDATA[<p>[...] 2. .htaccess, Apache, and Rewrites! Oh, my! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remove or force www from domain name &#124; Khalil Majdalawi's Blog</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-38769</link>
		<dc:creator>Remove or force www from domain name &#124; Khalil Majdalawi's Blog</dc:creator>
		<pubDate>Thu, 21 May 2009 08:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-38769</guid>
		<description>[...] farther reading about .htaccess Check this great post   var addthis_pub = ''; var addthis_language = 'en';var addthis_options = 'email, digg, delicious, [...]</description>
		<content:encoded><![CDATA[<p>[...] farther reading about .htaccess Check this great post   var addthis_pub = &#8221;; var addthis_language = &#8216;en&#8217;;var addthis_options = &#8216;email, digg, delicious, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quency</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/comment-page-2/#comment-38680</link>
		<dc:creator>quency</dc:creator>
		<pubDate>Mon, 18 May 2009 20:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crucialwebhost.com/?p=34#comment-38680</guid>
		<description>im in need of help to change .htaccess so that it has multiple RewriteRule and only one RewriteCond...but no luck so far only the first RewriteRule is read any help ???thanks...


RewriteEngine on

RewriteRule ^(.*)__(.*).html$ show_video.php?video_id=$2
RewriteRule ^(.*)__(.*).html$ show_video2.php?video_id=$2
RewriteRule ^(.*)__(.*).html$ show_video3.php?video_id=$2
etc......

ErrorDocument 404 /index.php
Options +FollowSymlinks

#RewriteCond %{REQUEST_URI}\\/%{HTTP_HOST}/www.//s%{HTTPS} ^/+(.+/)?[^.]*[^/]\\(/)([^w][^w][^w][^.].*/(www\.)&#124;.*)//((s)on&#124;s.*)$ [OR,NC]

RewriteCond %{HTTP_HOST}/www.//s%{HTTPS} ^(/)?(/)?([^w][^w][^w][^.].*/(www\.))//((s)on&#124;s.*)$ [NC]

RewriteRule ^ http%6://%4%{HTTP_HOST}%{REQUEST_URI}%2 [L,R=301]</description>
		<content:encoded><![CDATA[<p>im in need of help to change .htaccess so that it has multiple RewriteRule and only one RewriteCond&#8230;but no luck so far only the first RewriteRule is read any help ???thanks&#8230;</p>
<p>RewriteEngine on</p>
<p>RewriteRule ^(.*)__(.*).html$ show_video.php?video_id=$2<br />
RewriteRule ^(.*)__(.*).html$ show_video2.php?video_id=$2<br />
RewriteRule ^(.*)__(.*).html$ show_video3.php?video_id=$2<br />
etc&#8230;&#8230;</p>
<p>ErrorDocument 404 /index.php<br />
Options +FollowSymlinks</p>
<p>#RewriteCond %{REQUEST_URI}\\/%{HTTP_HOST}/www.//s%{HTTPS} ^/+(.+/)?[^.]*[^/]\\(/)([^w][^w][^w][^.].*/(www\.)|.*)//((s)on|s.*)$ [OR,NC]</p>
<p>RewriteCond %{HTTP_HOST}/www.//s%{HTTPS} ^(/)?(/)?([^w][^w][^w][^.].*/(www\.))//((s)on|s.*)$ [NC]</p>
<p>RewriteRule ^ http%6://%4%{HTTP_HOST}%{REQUEST_URI}%2 [L,R=301]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
