<?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>Tue, 07 Feb 2012 08:10:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Geo</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5486</link>
		<dc:creator>Geo</dc:creator>
		<pubDate>Wed, 09 Jun 2010 12:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5486</guid>
		<description>Hello Roshan 
After rewriting my php site with html how can I block accessing of .php links by typing directly from browser
I have already launched my site and search engines listing my site 
So what is the solution for that 
Can I redirect all php requests to a common page like error pages

And i didnt understand how we handle the php includes in my php pages

Geo</description>
		<content:encoded><![CDATA[<p>Hello Roshan<br />
After rewriting my php site with html how can I block accessing of .php links by typing directly from browser<br />
I have already launched my site and search engines listing my site<br />
So what is the solution for that<br />
Can I redirect all php requests to a common page like error pages</p>
<p>And i didnt understand how we handle the php includes in my php pages</p>
<p>Geo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IRSHAD</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5476</link>
		<dc:creator>IRSHAD</dc:creator>
		<pubDate>Wed, 02 Jun 2010 11:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5476</guid>
		<description>hi to all,

can u give me the solution of htaccess problem.
I have http and https both protocols and i want to redirect page if the page is demo.php it starts from https else starts from http</description>
		<content:encoded><![CDATA[<p>hi to all,</p>
<p>can u give me the solution of htaccess problem.<br />
I have http and https both protocols and i want to redirect page if the page is demo.php it starts from https else starts from http</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5454</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Wed, 19 May 2010 04:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5454</guid>
		<description>Doh!! you caught me....my bad English</description>
		<content:encoded><![CDATA[<p>Doh!! you caught me&#8230;.my bad English</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Brown, Ph.D.</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5441</link>
		<dc:creator>Brian Brown, Ph.D.</dc:creator>
		<pubDate>Thu, 13 May 2010 18:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5441</guid>
		<description>Dude-
You need to learn the difference between the words &quot;following&quot; and &quot;preceding!&quot;</description>
		<content:encoded><![CDATA[<p>Dude-<br />
You need to learn the difference between the words &#8220;following&#8221; and &#8220;preceding!&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AuctionHub &#187; Blog Archive &#187; Testing Press Release</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5420</link>
		<dc:creator>AuctionHub &#187; Blog Archive &#187; Testing Press Release</dc:creator>
		<pubDate>Wed, 05 May 2010 14:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5420</guid>
		<description>[...] 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>[...] 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: WEB</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5394</link>
		<dc:creator>WEB</dc:creator>
		<pubDate>Thu, 29 Apr 2010 03:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5394</guid>
		<description>Hi Roshan,

If i type index.php to index.html in address bar its working but its not changing automatically when i click index.php</description>
		<content:encoded><![CDATA[<p>Hi Roshan,</p>
<p>If i type index.php to index.html in address bar its working but its not changing automatically when i click index.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhruv</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5379</link>
		<dc:creator>Dhruv</dc:creator>
		<pubDate>Wed, 21 Apr 2010 18:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5379</guid>
		<description>Also is there a hack in wordpress to rewrite the default /search/ folder to /what-ever/

thanks

-DP</description>
		<content:encoded><![CDATA[<p>Also is there a hack in wordpress to rewrite the default /search/ folder to /what-ever/</p>
<p>thanks</p>
<p>-DP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prosoxi All about Development &#38; Design &#187; How to redirect browser to https (ssl) in php</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5357</link>
		<dc:creator>Prosoxi All about Development &#38; Design &#187; How to redirect browser to https (ssl) in php</dc:creator>
		<pubDate>Tue, 13 Apr 2010 08:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5357</guid>
		<description>[...] Just copy and paste the above code in .htaccess file then the whole website will be redirected to “https” when the browser is opened in “http” mode. The browser just get redirected using url rewriting in .htaccess. [...]</description>
		<content:encoded><![CDATA[<p>[...] Just copy and paste the above code in .htaccess file then the whole website will be redirected to “https” when the browser is opened in “http” mode. The browser just get redirected using url rewriting in .htaccess. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web developer</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5343</link>
		<dc:creator>web developer</dc:creator>
		<pubDate>Fri, 09 Apr 2010 07:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5343</guid>
		<description>hi
this is what i was looking for.
thanx 4 sharing it.
tried your code.
it works fine for just converting .php to .htm.
bt as i tried product thing its not working.
like. for eg. url is product.php?id=5
when i am redirecting it from a page it shows the same url like product.php?id=5 in the browser.
can you tell me wats the wrong in it?
thanks in advance.</description>
		<content:encoded><![CDATA[<p>hi<br />
this is what i was looking for.<br />
thanx 4 sharing it.<br />
tried your code.<br />
it works fine for just converting .php to .htm.<br />
bt as i tried product thing its not working.<br />
like. for eg. url is product.php?id=5<br />
when i am redirecting it from a page it shows the same url like product.php?id=5 in the browser.<br />
can you tell me wats the wrong in it?<br />
thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiran</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5327</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Wed, 31 Mar 2010 07:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5327</guid>
		<description>hi all,
i have problem when using dynamic url like 
RewriteRule ^refer-([0-9]+)\.html$ refer-a-friend.php?cty=$1

This is not working for me when i given 
refer-1.html 

Can anybody help me</description>
		<content:encoded><![CDATA[<p>hi all,<br />
i have problem when using dynamic url like<br />
RewriteRule ^refer-([0-9]+)\.html$ refer-a-friend.php?cty=$1</p>
<p>This is not working for me when i given<br />
refer-1.html </p>
<p>Can anybody help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anup</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5241</link>
		<dc:creator>Anup</dc:creator>
		<pubDate>Sat, 13 Mar 2010 01:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5241</guid>
		<description>Thanks for the great information.</description>
		<content:encoded><![CDATA[<p>Thanks for the great information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5192</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Thu, 25 Feb 2010 00:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5192</guid>
		<description>Hi everyone!!! Fist of all I don&#039; write so good in English but if you understand this, may be I can help someone.

What I found is, Firs you need a Linux hosting then create a file in notepad or any other text editor,

Paste this code in there, save it as .htaccess that will be a .htaccess.txt upload it to the root folder of your host and then change the name for .htaccess get the &quot;.txt&quot; out. 

After that if you want to see the pages like www.yahoo.com/news/ 
when you set the links in dreamweaver or any software you use just remove the .php in the link

ej:  set the link  like ../news/latestnews instead of ../news/latestnews.php

 
order allow,deny
deny from all 


#Hide php extention
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^[.*]$ $1.phps

Thank you and I hope this help.</description>
		<content:encoded><![CDATA[<p>Hi everyone!!! Fist of all I don&#8217; write so good in English but if you understand this, may be I can help someone.</p>
<p>What I found is, Firs you need a Linux hosting then create a file in notepad or any other text editor,</p>
<p>Paste this code in there, save it as .htaccess that will be a .htaccess.txt upload it to the root folder of your host and then change the name for .htaccess get the &#8220;.txt&#8221; out. </p>
<p>After that if you want to see the pages like <a href="http://www.yahoo.com/news/" rel="nofollow">http://www.yahoo.com/news/</a><br />
when you set the links in dreamweaver or any software you use just remove the .php in the link</p>
<p>ej:  set the link  like ../news/latestnews instead of ../news/latestnews.php</p>
<p>order allow,deny<br />
deny from all </p>
<p>#Hide php extention<br />
RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_FILENAME}\.php -f<br />
RewriteRule ^[.*]$ $1.phps</p>
<p>Thank you and I hope this help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abid</title>
		<link>http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html/comment-page-3#comment-5184</link>
		<dc:creator>Abid</dc:creator>
		<pubDate>Tue, 23 Feb 2010 18:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html#comment-5184</guid>
		<description>can i rewrite 
http://esportcafe.com/social/profile.php?user=test(0-9)
into
http://test(0-9).esportcafe.com/
please help.</description>
		<content:encoded><![CDATA[<p>can i rewrite<br />
<a href="http://esportcafe.com/social/profile.php?user=test(0-9)" rel="nofollow">http://esportcafe.com/social/profile.php?user=test(0-9)</a><br />
into<br />
<a href="http://test(0-9).esportcafe.com/" rel="nofollow">http://test(0-9).esportcafe.com/</a><br />
please help.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/19 queries in 0.049 seconds using disk: basic
Object Caching 401/401 objects using disk: basic

Served from: roshanbh.com.np @ 2012-02-09 05:59:46 -->
