<?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: Removing file extension via .htaccess</title>
	<atom:link href="http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/</link>
	<description>Web Development, Web Design, Web Applications, Web 2.0, AJAX, WordPress Themes, Search Engine Optimisation, Latest Technologies and more..</description>
	<lastBuildDate>Tue, 20 Mar 2012 09:48:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kavita</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-167531</link>
		<dc:creator>Kavita</dc:creator>
		<pubDate>Sun, 17 Apr 2011 10:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-167531</guid>
		<description>Thanks for the tips and codes to hide file extension. URLs look more SEO friendly hiding extensions. Nice blog.</description>
		<content:encoded><![CDATA[<p>Thanks for the tips and codes to hide file extension. URLs look more SEO friendly hiding extensions. Nice blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nerdess</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-164892</link>
		<dc:creator>nerdess</dc:creator>
		<pubDate>Tue, 12 Apr 2011 12:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-164892</guid>
		<description>ah, and one other note: if you happen to have an edge case like this where the directory the file is in and the file name have the same name like e.g. so:

plugins\skills\skills.html

the engine gets confused. you need to rename skills.html to sth else like skills-temp.html and then need to add an exception to .htaccess like so:

RewriteEngine on
RewriteBase /
RewriteCond %{DOCUMENT_ROOT}/$1 !-f
RewriteCond %{DOCUMENT_ROOT}/$1/ !-d

#this is the exception
RewriteRule ^plugins/skills/$ /plugins/skills-temp.html [L]

RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L]

there might be a more elegant solution to solve this edge case where you don&#039;t need to define an exception in .htaccess but i have not found it yet and to be honest that whole rewrite rules thing hurts my brain ;-)

cheers
sissi</description>
		<content:encoded><![CDATA[<p>ah, and one other note: if you happen to have an edge case like this where the directory the file is in and the file name have the same name like e.g. so:</p>
<p>plugins\skills\skills.html</p>
<p>the engine gets confused. you need to rename skills.html to sth else like skills-temp.html and then need to add an exception to .htaccess like so:</p>
<p>RewriteEngine on<br />
RewriteBase /<br />
RewriteCond %{DOCUMENT_ROOT}/$1 !-f<br />
RewriteCond %{DOCUMENT_ROOT}/$1/ !-d</p>
<p>#this is the exception<br />
RewriteRule ^plugins/skills/$ /plugins/skills-temp.html [L]</p>
<p>RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L]</p>
<p>there might be a more elegant solution to solve this edge case where you don&#8217;t need to define an exception in .htaccess but i have not found it yet and to be honest that whole rewrite rules thing hurts my brain ;-)</p>
<p>cheers<br />
sissi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nerdess</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-164873</link>
		<dc:creator>nerdess</dc:creator>
		<pubDate>Tue, 12 Apr 2011 11:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-164873</guid>
		<description>hi adway

this code worked for me:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L]</description>
		<content:encoded><![CDATA[<p>hi adway</p>
<p>this code worked for me:</p>
<p>RewriteEngine on<br />
RewriteBase /<br />
RewriteCond %{REQUEST_fileNAME} !-d<br />
RewriteCond %{REQUEST_fileNAME} !-f<br />
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adway</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-157372</link>
		<dc:creator>Adway</dc:creator>
		<pubDate>Thu, 17 Mar 2011 21:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-157372</guid>
		<description>Yo Man!

The code is not working for me. I still get 404. This is the line from Apache log:

127.0.0.1 - - [18/Mar/2011:02:42:45 +0530] &quot;GET /t HTTP/1.1&quot; 404 1161 &quot;-&quot; &quot;Opera/9.80 (Windows NT 6.0; U; en) Presto/2.7.62 Version/11.01&quot;

Somebody please help!</description>
		<content:encoded><![CDATA[<p>Yo Man!</p>
<p>The code is not working for me. I still get 404. This is the line from Apache log:</p>
<p>127.0.0.1 &#8211; - [18/Mar/2011:02:42:45 +0530] &#8220;GET /t HTTP/1.1&#8243; 404 1161 &#8220;-&#8221; &#8220;Opera/9.80 (Windows NT 6.0; U; en) Presto/2.7.62 Version/11.01&#8243;</p>
<p>Somebody please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ambrish</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-157167</link>
		<dc:creator>Ambrish</dc:creator>
		<pubDate>Wed, 16 Mar 2011 09:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-157167</guid>
		<description>i got below error




Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

made a file name &quot;.htaccess&quot;


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
 
and put in same folder but it show above error
what should i do?</description>
		<content:encoded><![CDATA[<p>i got below error</p>
<p>Internal Server Error<br />
The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
<p>Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
<p>More information about this error may be available in the server error log.</p>
<p>made a file name &#8220;.htaccess&#8221;</p>
<p>RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_FILENAME}\.php -f<br />
RewriteRule ^(.*)$ $1.php</p>
<p>and put in same folder but it show above error<br />
what should i do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zee</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-152755</link>
		<dc:creator>Zee</dc:creator>
		<pubDate>Thu, 10 Feb 2011 06:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-152755</guid>
		<description>Hey Randy,

The .htaccess file needs to go in the same directory as the file. It will work from the top down. Meaning, if you have the .htaccess in a certain directory, it will affect any other sub files/folders within it.</description>
		<content:encoded><![CDATA[<p>Hey Randy,</p>
<p>The .htaccess file needs to go in the same directory as the file. It will work from the top down. Meaning, if you have the .htaccess in a certain directory, it will affect any other sub files/folders within it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-149233</link>
		<dc:creator>Randy</dc:creator>
		<pubDate>Fri, 07 Jan 2011 17:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-149233</guid>
		<description>Hi I&#039;ve been searching for hours and still can&#039;t make it to work.. where would I create a htaccess file? the same directory as my pages? C:/wamp/www/folder/index.php
I get Internal Server Error. What should I do?</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;ve been searching for hours and still can&#8217;t make it to work.. where would I create a htaccess file? the same directory as my pages? C:/wamp/www/folder/index.php<br />
I get Internal Server Error. What should I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cycron</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-149052</link>
		<dc:creator>Cycron</dc:creator>
		<pubDate>Wed, 05 Jan 2011 21:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-149052</guid>
		<description>I tried the following code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^([^/]+)/$ $1.html

And it makes so http://website.com/folder/file.html works, http://website.com/folder/file/ works, but http://website.com/folder/file takes me to http://website.com/file/ 

I&#039;d like it to work without the slash and extension too, how do I do this?</description>
		<content:encoded><![CDATA[<p>I tried the following code:</p>
<p>RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_FILENAME}\.html -f<br />
RewriteRule ^([^/]+)/$ $1.html</p>
<p>And it makes so <a href="http://website.com/folder/file.html" rel="nofollow">http://website.com/folder/file.html</a> works, <a href="http://website.com/folder/file/" rel="nofollow">http://website.com/folder/file/</a> works, but <a href="http://website.com/folder/file" rel="nofollow">http://website.com/folder/file</a> takes me to <a href="http://website.com/file/" rel="nofollow">http://website.com/file/</a> </p>
<p>I&#8217;d like it to work without the slash and extension too, how do I do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. Concept</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-148041</link>
		<dc:creator>Mr. Concept</dc:creator>
		<pubDate>Mon, 27 Dec 2010 15:43:03 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-148041</guid>
		<description>Great tip, I am trying to get it to work.   So if I understand this correctly, we have to delete the extensions from the webpages for this to work?</description>
		<content:encoded><![CDATA[<p>Great tip, I am trying to get it to work.   So if I understand this correctly, we have to delete the extensions from the webpages for this to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micky</title>
		<link>http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/comment-page-1/#comment-144325</link>
		<dc:creator>Micky</dc:creator>
		<pubDate>Wed, 01 Dec 2010 06:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/#comment-144325</guid>
		<description>RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

This code is not working, what might be the reason?
can anyone help me. M just trying to remove the extension .php. But its showing page not found.... Pl Pl Pl Help........</description>
		<content:encoded><![CDATA[<p>RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_FILENAME}\.php -f<br />
RewriteRule ^(.*)$ $1.php</p>
<p>This code is not working, what might be the reason?<br />
can anyone help me. M just trying to remove the extension .php. But its showing page not found&#8230;. Pl Pl Pl Help&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

