<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	>
<channel>
	<title>Comments on: What is htaccess and what does it do?</title>
	<atom:link href="http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/</link>
	<description>Web Design, Marketing, Mac, Branding, SEO</description>
	<lastBuildDate>Sat, 17 Jul 2010 15:39:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Amir</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2695</link>
		<dc:creator>Amir</dc:creator>
		<pubDate>Thu, 30 Apr 2009 14:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2695</guid>
		<description>Hi guys,

I searched so many websites in these 2 days but still I couldn&#039;t find a solution, I know it&#039;s not a forum, but maybe you can help mewith this.

Actually I want to use mode rewrite for masking my URLs, thing is that I have URLs like www.mysite.com/index.php?page=news&amp;newsID=23, I already created this in .htaccess:

RewriteRule (.*)-(.*) index.php?page=$1&amp;newsID=$2

result: www.mysite.com/news-23

but the thing is that I want to pass title of that news to my URL instead of 23 (like www.mysite.com/first-news), I don&#039;t know how can I do that.

I really appreciate any help in advanced :D

Cheers. (my email is amirrezaa.farhadi@gmail.com</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>I searched so many websites in these 2 days but still I couldn&#8217;t find a solution, I know it&#8217;s not a forum, but maybe you can help mewith this.</p>
<p>Actually I want to use mode rewrite for masking my URLs, thing is that I have URLs like <a href="http://www.mysite.com/index.php?page=news&amp;newsID=23" rel="nofollow">http://www.mysite.com/index.php?page=news&amp;newsID=23</a>, I already created this in .htaccess:</p>
<p>RewriteRule (.*)-(.*) index.php?page=$1&amp;newsID=$2</p>
<p>result: <a href="http://www.mysite.com/news-23" rel="nofollow">http://www.mysite.com/news-23</a></p>
<p>but the thing is that I want to pass title of that news to my URL instead of 23 (like <a href="http://www.mysite.com/first-news" rel="nofollow">http://www.mysite.com/first-news</a>), I don&#8217;t know how can I do that.</p>
<p>I really appreciate any help in advanced <img src='http://www.bluewavemedia.ca/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Cheers. (my email is <a href="mailto:amirrezaa.farhadi@gmail.com">amirrezaa.farhadi@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kimberly</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2654</link>
		<dc:creator>Kimberly</dc:creator>
		<pubDate>Wed, 11 Mar 2009 19:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2654</guid>
		<description>You&#039;ve got it - just remember to put the real domain in there and you are set to go.</description>
		<content:encoded><![CDATA[<p>You&#8217;ve got it &#8211; just remember to put the real domain in there and you are set to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yael K. Miller</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2653</link>
		<dc:creator>Yael K. Miller</dc:creator>
		<pubDate>Wed, 11 Mar 2009 18:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2653</guid>
		<description>Back again.  So if I&#039;m using www-canonicalization, the .htaccess file should look like this, correct?   With my url in both domain.com spots, correct?

&lt;code&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://www%{HTTP_HOST}/$1/ [R=301,L] 

RewriteCond %{REQUEST_URI} !..+$
# and does not end with a slash
RewriteCond %{REQUEST_URI} !/$
# then add a trailing slash and redirect
RewriteRule (.*) $1/ [R=301,L]

# BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
# END WordPress&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Back again.  So if I&#8217;m using www-canonicalization, the .htaccess file should look like this, correct?   With my url in both domain.com spots, correct?</p>
<p>&lt;code&gt;RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://domain.com/$1" rel="nofollow">http://domain.com/$1</a> [R=301,L]<br />
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$<br />
RewriteRule ^(.*)$ <a href="http://www%" rel="nofollow">http://www%</a>{HTTP_HOST}/$1/ [R=301,L] </p>
<p>RewriteCond %{REQUEST_URI} !..+$<br />
# and does not end with a slash<br />
RewriteCond %{REQUEST_URI} !/$<br />
# then add a trailing slash and redirect<br />
RewriteRule (.*) $1/ [R=301,L]</p>
<p># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;<br />
# END WordPress&lt;/code&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kimberly</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2649</link>
		<dc:creator>Kimberly</dc:creator>
		<pubDate>Sun, 08 Mar 2009 02:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2649</guid>
		<description>Wow, blew me away with that one! You are so very welcome - I have enjoyed this learning experience for myself too as it is good to get this stuff out of my mind and on &quot;paper.&quot; Makes me push myself farther too. You have been awesome.</description>
		<content:encoded><![CDATA[<p>Wow, blew me away with that one! You are so very welcome &#8211; I have enjoyed this learning experience for myself too as it is good to get this stuff out of my mind and on &#8220;paper.&#8221; Makes me push myself farther too. You have been awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yael K. Miller</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2648</link>
		<dc:creator>Yael K. Miller</dc:creator>
		<pubDate>Sun, 08 Mar 2009 01:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2648</guid>
		<description>Thanks for answering all my questions, Kimberly.  You&#039;re one classy lady.</description>
		<content:encoded><![CDATA[<p>Thanks for answering all my questions, Kimberly.  You&#8217;re one classy lady.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kimberly</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2647</link>
		<dc:creator>Kimberly</dc:creator>
		<pubDate>Sat, 07 Mar 2009 22:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2647</guid>
		<description>You&#039;ve got it! I put that there for the explanation but yes that is where you would put your domain/url that you are working on.

This is a great exchange - thanks Yael!</description>
		<content:encoded><![CDATA[<p>You&#8217;ve got it! I put that there for the explanation but yes that is where you would put your domain/url that you are working on.</p>
<p>This is a great exchange &#8211; thanks Yael!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yael K. Miller</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2646</link>
		<dc:creator>Yael K. Miller</dc:creator>
		<pubDate>Sat, 07 Mar 2009 21:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2646</guid>
		<description>And for where you put in domain.com should I put in the url for my site?</description>
		<content:encoded><![CDATA[<p>And for where you put in domain.com should I put in the url for my site?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kimberly</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2645</link>
		<dc:creator>Kimberly</dc:creator>
		<pubDate>Sat, 07 Mar 2009 20:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2645</guid>
		<description>Not really different - you have the  which just signifies to look for any re-write rules, so you are good to go.</description>
		<content:encoded><![CDATA[<p>Not really different &#8211; you have the  which just signifies to look for any re-write rules, so you are good to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yael K. Miller</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2644</link>
		<dc:creator>Yael K. Miller</dc:creator>
		<pubDate>Sat, 07 Mar 2009 19:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2644</guid>
		<description>What the starting WP .htaccess I have is:

&lt;code&gt;# BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
# END WordPress&lt;/code&gt;

Is that different from what you stated, which is: 

&lt;code&gt;# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>What the starting WP .htaccess I have is:</p>
<p>&lt;code&gt;# BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;<br />
# END WordPress&lt;/code&gt;</p>
<p>Is that different from what you stated, which is: </p>
<p>&lt;code&gt;# BEGIN WordPress<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
# END WordPress&lt;/code&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kimberly</title>
		<link>http://www.bluewavemedia.ca/what-is-htaccess-and-what-does-it-do/comment-page-1/#comment-2643</link>
		<dc:creator>Kimberly</dc:creator>
		<pubDate>Sat, 07 Mar 2009 19:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluewavemedia.ca/?p=419#comment-2643</guid>
		<description>Correct. If you want it to be with the www, use

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://www%{HTTP_HOST}/$1/ [R=301,L] 

This will make sure the www is included if someone leaves it off</description>
		<content:encoded><![CDATA[<p>Correct. If you want it to be with the www, use</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://domain.com/$1" rel="nofollow">http://domain.com/$1</a> [R=301,L]<br />
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$<br />
RewriteRule ^(.*)$ <a href="http://www%" rel="nofollow">http://www%</a>{HTTP_HOST}/$1/ [R=301,L] </p>
<p>This will make sure the www is included if someone leaves it off</p>
]]></content:encoded>
	</item>
</channel>
</rss>
