<?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: Hide .php extension with url rewriting using .htaccess</title>
	<atom:link href="http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Wed, 10 Mar 2010 10:59:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hair Beauty Supplies</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5143</link>
		<dc:creator>Hair Beauty Supplies</dc:creator>
		<pubDate>Tue, 09 Feb 2010 15:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5143</guid>
		<description>I agree with Jim above, when you use URL rewriting the links to a site or a web application looks neat.</description>
		<content:encoded><![CDATA[<p>I agree with Jim above, when you use URL rewriting the links to a site or a web application looks neat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iPhone Repairs - Jim</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5137</link>
		<dc:creator>iPhone Repairs - Jim</dc:creator>
		<pubDate>Sat, 06 Feb 2010 10:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5137</guid>
		<description>when using url rewriting I find it very easy on the eye without the extension part. It also makes geeks guesses hard to know whats under the hood.</description>
		<content:encoded><![CDATA[<p>when using url rewriting I find it very easy on the eye without the extension part. It also makes geeks guesses hard to know whats under the hood.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiosx</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5106</link>
		<dc:creator>tiosx</dc:creator>
		<pubDate>Thu, 28 Jan 2010 20:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5106</guid>
		<description>Hello, please help me, I&#039;m making a server-side rewrite that reads foo=1 when user puts domain.com/category/, thats my code: 

Rewriterule ^category/ /?foo=1 [L]
rewrite mod works

But if exists a file called category.php, then rewrite mod doesn&#039;t work

I tried do this:

RewriteCond %{REQUEST_FILENAME} !-f
Rewriterule ^category/ /?foo=1 [L]
and this:

Rewriterule ^category/$ /?foo=1 [L]
and also I tried this:

Rewriterule ^category([^\.php])/$ /?foo=1 [L]
But doesn&#039;t work. I need help  Is possible this rewrite?? or i have to delete category.php file?
Thanks</description>
		<content:encoded><![CDATA[<p>Hello, please help me, I&#8217;m making a server-side rewrite that reads foo=1 when user puts domain.com/category/, thats my code: </p>
<p>Rewriterule ^category/ /?foo=1 [L]<br />
rewrite mod works</p>
<p>But if exists a file called category.php, then rewrite mod doesn&#8217;t work</p>
<p>I tried do this:</p>
<p>RewriteCond %{REQUEST_FILENAME} !-f<br />
Rewriterule ^category/ /?foo=1 [L]<br />
and this:</p>
<p>Rewriterule ^category/$ /?foo=1 [L]<br />
and also I tried this:</p>
<p>Rewriterule ^category([^\.php])/$ /?foo=1 [L]<br />
But doesn&#8217;t work. I need help  Is possible this rewrite?? or i have to delete category.php file?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeshkumar</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5098</link>
		<dc:creator>Rajeshkumar</dc:creator>
		<pubDate>Wed, 27 Jan 2010 06:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5098</guid>
		<description>Hi Roshan,
                      I have tried according to the above instructions but i couldn&#039;t get the result. can u help me plz plz....

Here i am working in wamp server, so i have created a url.htaccess in www directory.
Now i created a folder called http access, in that i created a file called product.php

In the url.htaccess
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^product-([0-9]+)\.html$ products.php?id=$5

in the product.php




     
  
  
    Name
    :
     
  

     
  





so Finally when i want to access product-5.html, it gives the out put 404 error file not found..

and also i have enable mod_rewrite in the conf directory .htaccess file.


could u please help me ...</description>
		<content:encoded><![CDATA[<p>Hi Roshan,<br />
                      I have tried according to the above instructions but i couldn&#8217;t get the result. can u help me plz plz&#8230;.</p>
<p>Here i am working in wamp server, so i have created a url.htaccess in www directory.<br />
Now i created a folder called http access, in that i created a file called product.php</p>
<p>In the url.htaccess<br />
Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^product-([0-9]+)\.html$ products.php?id=$5</p>
<p>in the product.php</p>
<p>    Name<br />
    :</p>
<p>so Finally when i want to access product-5.html, it gives the out put 404 error file not found..</p>
<p>and also i have enable mod_rewrite in the conf directory .htaccess file.</p>
<p>could u please help me &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Facebook Developers</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5073</link>
		<dc:creator>Facebook Developers</dc:creator>
		<pubDate>Tue, 19 Jan 2010 08:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5073</guid>
		<description>Great. I was really want to know this.</description>
		<content:encoded><![CDATA[<p>Great. I was really want to know this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conflicker</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5017</link>
		<dc:creator>conflicker</dc:creator>
		<pubDate>Wed, 06 Jan 2010 10:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5017</guid>
		<description>Hi Rishan..what rewriterule i can put in the htaccess if im not using id,,im trying to name for a comment purposes..</description>
		<content:encoded><![CDATA[<p>Hi Rishan..what rewriterule i can put in the htaccess if im not using id,,im trying to name for a comment purposes..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mayur</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5013</link>
		<dc:creator>Mayur</dc:creator>
		<pubDate>Tue, 05 Jan 2010 09:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5013</guid>
		<description>Hi,

I checked with all rules mentioned here and we get to convert dynamic web page query string into .html format URL you can see here http://www.addonsolutions.com/Hire-Enterprise-Java-Beans-Developer-Programmer-EJB-Developers-EJB-Programmer.html website design and development page but if can not be converted from PHP to html 
any idea?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I checked with all rules mentioned here and we get to convert dynamic web page query string into .html format URL you can see here <a href="http://www.addonsolutions.com/Hire-Enterprise-Java-Beans-Developer-Programmer-EJB-Developers-EJB-Programmer.html" rel="nofollow">http://www.addonsolutions.com/Hire-Enterprise-Java-Beans-Developer-Programmer-EJB-Developers-EJB-Programmer.html</a> website design and development page but if can not be converted from PHP to html<br />
any idea?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5009</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Mon, 04 Jan 2010 17:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5009</guid>
		<description>Hi All,

Could you help me in rewritting url ..I am writing url rewritable rule.i want to the caetgory name and sate name change. like this http://www.abc.com/catergory name /state name/state name.html
i want to write a rule that catergory name and state name will change … please help me</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>Could you help me in rewritting url ..I am writing url rewritable rule.i want to the caetgory name and sate name change. like this <a href="http://www.abc.com/catergory" rel="nofollow">http://www.abc.com/catergory</a> name /state name/state name.html<br />
i want to write a rule that catergory name and state name will change … please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Best Electronic Cigarette Reviews</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4986</link>
		<dc:creator>Best Electronic Cigarette Reviews</dc:creator>
		<pubDate>Mon, 28 Dec 2009 06:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4986</guid>
		<description>I hate the file extension on most of my html pages site, I will play with this one and see how it goes. Kudos for the timely info.</description>
		<content:encoded><![CDATA[<p>I hate the file extension on most of my html pages site, I will play with this one and see how it goes. Kudos for the timely info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usefull tips for URL rewriting &#171; New IT Technologies</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4914</link>
		<dc:creator>Usefull tips for URL rewriting &#171; New IT Technologies</dc:creator>
		<pubDate>Wed, 16 Dec 2009 07:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4914</guid>
		<description>[...] December 16, 2009 by newittechnologies    If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples of URL rewriting using .htacess. If you don’t know something about url rewriting then please check my older post about url rewriting using .htaccess. [...]</description>
		<content:encoded><![CDATA[<p>[...] December 16, 2009 by newittechnologies    If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples of URL rewriting using .htacess. If you don’t know something about url rewriting then please check my older post about url rewriting using .htaccess. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atheeq</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4830</link>
		<dc:creator>Atheeq</dc:creator>
		<pubDate>Wed, 18 Nov 2009 12:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4830</guid>
		<description>In windows , If i put .httaccess then showing error.Kindly help me.</description>
		<content:encoded><![CDATA[<p>In windows , If i put .httaccess then showing error.Kindly help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: URL Rewriting for PHP Web Applications Using Apache mod_rewrite extension &#124; TechiePark</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4826</link>
		<dc:creator>URL Rewriting for PHP Web Applications Using Apache mod_rewrite extension &#124; TechiePark</dc:creator>
		<pubDate>Wed, 18 Nov 2009 05:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4826</guid>
		<description>[...] References: How to: URL re-writing in PHP ? http://www.workingwith.me.uk/articles/scripting/mod_rewrite Pretty URLs &#8211; a guide to URL rewriting Hide .php extension with url rewriting using .htaccess [...]</description>
		<content:encoded><![CDATA[<p>[...] References: How to: URL re-writing in PHP ? <a href="http://www.workingwith.me.uk/articles/scripting/mod_rewrite" rel="nofollow">http://www.workingwith.me.uk/articles/scripting/mod_rewrite</a> Pretty URLs &#8211; a guide to URL rewriting Hide .php extension with url rewriting using .htaccess [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 11x17</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4791</link>
		<dc:creator>11x17</dc:creator>
		<pubDate>Thu, 05 Nov 2009 17:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4791</guid>
		<description>TKS A LOT FOR YOUR SHARING ITS VERY USEFUL FOR SEO</description>
		<content:encoded><![CDATA[<p>TKS A LOT FOR YOUR SHARING ITS VERY USEFUL FOR SEO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eiad</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4764</link>
		<dc:creator>Eiad</dc:creator>
		<pubDate>Sun, 01 Nov 2009 22:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4764</guid>
		<description>Hello, Thanks Very Much Really Helped Me alot.</description>
		<content:encoded><![CDATA[<p>Hello, Thanks Very Much Really Helped Me alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-4600</link>
		<dc:creator>Sunil</dc:creator>
		<pubDate>Fri, 18 Sep 2009 13:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-4600</guid>
		<description>Hi! all

*** URGENT ***
I am trying the below htaccess

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)\.htm$ $1.php

I can get the .htm files to call the equivalent .php files no problems but the extensions are not swapping out. How do I get .php to change to .htm?

After this I tried the code like this: 

RewriteEngine on
RewriteRule ^(.*)\.php$ $1.htm [R=302,N]

this changes the extension of the file to .htm but  with an error message

Error 404: File Not Found

I want to do it from the redirection only .Because if we do it by making the url as
&lt;a href=&quot;”***.htm”&quot; rel=&quot;nofollow&quot;&gt;, then it will affect the ranking of my site.So to maintain the ranking
I want to do it by using redirecting methods.Kindly suggest me about this.

Regards,
Sunil Sharma&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi! all</p>
<p>*** URGENT ***<br />
I am trying the below htaccess</p>
<p>Options +FollowSymLinks<br />
RewriteEngine On<br />
RewriteRule ^(.*)\.htm$ $1.php</p>
<p>I can get the .htm files to call the equivalent .php files no problems but the extensions are not swapping out. How do I get .php to change to .htm?</p>
<p>After this I tried the code like this: </p>
<p>RewriteEngine on<br />
RewriteRule ^(.*)\.php$ $1.htm [R=302,N]</p>
<p>this changes the extension of the file to .htm but  with an error message</p>
<p>Error 404: File Not Found</p>
<p>I want to do it from the redirection only .Because if we do it by making the url as<br />
<a href="”***.htm”" rel="nofollow">, then it will affect the ranking of my site.So to maintain the ranking<br />
I want to do it by using redirecting methods.Kindly suggest me about this.</p>
<p>Regards,<br />
Sunil Sharma</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
