<?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: 5 useful url rewriting examples using .htaccess</title>
	<atom:link href="http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Sun, 14 Mar 2010 01:15:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dating guy</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-5145</link>
		<dc:creator>dating guy</dc:creator>
		<pubDate>Wed, 10 Feb 2010 19:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-5145</guid>
		<description>Really useful examples, thanks for sharing them</description>
		<content:encoded><![CDATA[<p>Really useful examples, thanks for sharing them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gamesawy</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-5119</link>
		<dc:creator>gamesawy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 21:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-5119</guid>
		<description>thanks for the nice  examples</description>
		<content:encoded><![CDATA[<p>thanks for the nice  examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murtaza</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-5056</link>
		<dc:creator>Murtaza</dc:creator>
		<pubDate>Mon, 18 Jan 2010 04:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-5056</guid>
		<description>Hello,

My site is in JOOMLA. I want to rewrite the home page SEF url http://67.208.116.186:81/joomla/index.php/home to the main site http://67.208.116.186:81/joomla/. Kindly guide me which code i will put in .htaccess file? I am a newbie for using apache.

Regards,
Murtaza</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>My site is in JOOMLA. I want to rewrite the home page SEF url <a href="http://67.208.116.186:81/joomla/index.php/home" rel="nofollow">http://67.208.116.186:81/joomla/index.php/home</a> to the main site <a href="http://67.208.116.186:81/joomla/" rel="nofollow">http://67.208.116.186:81/joomla/</a>. Kindly guide me which code i will put in .htaccess file? I am a newbie for using apache.</p>
<p>Regards,<br />
Murtaza</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-5019</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Wed, 06 Jan 2010 14:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-5019</guid>
		<description>Hi ,

I am new to php and I am trying to follow you post but messed up my .htaccess file.And actually wants to redirect following URLs
http://www.mysite.com/content/list?type=studio To http://www.mysite.com/list/type/studio

and another URL with two query strings is :
http://www.myxxxreward.com/content/content?type=category&amp;prod=Anal&amp;id=5 TO http://www.mysite.com/content/type/category/prod/Anal/id/5 and here type, prod and id values changes dynamically, like that I have 10 URL getting generated based on value from the database, how to make it work.

Will you please help me out.

Thank you
Raj</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>I am new to php and I am trying to follow you post but messed up my .htaccess file.And actually wants to redirect following URLs<br />
<a href="http://www.mysite.com/content/list?type=studio" rel="nofollow">http://www.mysite.com/content/list?type=studio</a> To <a href="http://www.mysite.com/list/type/studio" rel="nofollow">http://www.mysite.com/list/type/studio</a></p>
<p>and another URL with two query strings is :<br />
<a href="http://www.myxxxreward.com/content/content?type=category&amp;prod=Anal&amp;id=5" rel="nofollow">http://www.myxxxreward.com/content/content?type=category&amp;prod=Anal&amp;id=5</a> TO <a href="http://www.mysite.com/content/type/category/prod/Anal/id/5" rel="nofollow">http://www.mysite.com/content/type/category/prod/Anal/id/5</a> and here type, prod and id values changes dynamically, like that I have 10 URL getting generated based on value from the database, how to make it work.</p>
<p>Will you please help me out.</p>
<p>Thank you<br />
Raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranjit Kumar</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4919</link>
		<dc:creator>Ranjit Kumar</dc:creator>
		<pubDate>Thu, 17 Dec 2009 07:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4919</guid>
		<description>Hi
I have just found your site from google.com.I have problem .Problem is i have 12 links in page i want to click a particular  link then in broswser it show domainname/linkname.But i want to when i click any link it should be show in browser with link name and each case run a file detail.php.So it is possible through
.htacess file.Then send me code.
Example
AGRICULTURE SCIENCE  ARCHAEOLOGY ARCHITECTURE suppose these are links when i click this link
then result should be domain.com/link-name and each click detail.php file should be run.
Thanks in advance
Ranjit Kumar
My english is not good.</description>
		<content:encoded><![CDATA[<p>Hi<br />
I have just found your site from google.com.I have problem .Problem is i have 12 links in page i want to click a particular  link then in broswser it show domainname/linkname.But i want to when i click any link it should be show in browser with link name and each case run a file detail.php.So it is possible through<br />
.htacess file.Then send me code.<br />
Example<br />
AGRICULTURE SCIENCE  ARCHAEOLOGY ARCHITECTURE suppose these are links when i click this link<br />
then result should be domain.com/link-name and each click detail.php file should be run.<br />
Thanks in advance<br />
Ranjit Kumar<br />
My english is not good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: belal</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4897</link>
		<dc:creator>belal</dc:creator>
		<pubDate>Fri, 11 Dec 2009 11:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4897</guid>
		<description>RewriteEngine on
RewriteRule digital-camera/([^/]+)/ brand.php?brandName=$1
RewriteRule digital-cameras/([^/]+)/([^/]+) product_list.php?bName=$1&amp;catName=$2

First rule is working fine but second rule is not working, can you please tell where is the problem?

this is my website www.cameraforall.com
you see it&#039;s working when you click on canon, nikon or any brand name but it&#039;s not working when cliking on Compact Digital Cameras/Digital SLR Cameras

Need help, please give me advise...</description>
		<content:encoded><![CDATA[<p>RewriteEngine on<br />
RewriteRule digital-camera/([^/]+)/ brand.php?brandName=$1<br />
RewriteRule digital-cameras/([^/]+)/([^/]+) product_list.php?bName=$1&amp;catName=$2</p>
<p>First rule is working fine but second rule is not working, can you please tell where is the problem?</p>
<p>this is my website <a href="http://www.cameraforall.com" rel="nofollow">http://www.cameraforall.com</a><br />
you see it&#8217;s working when you click on canon, nikon or any brand name but it&#8217;s not working when cliking on Compact Digital Cameras/Digital SLR Cameras</p>
<p>Need help, please give me advise&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajat</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4894</link>
		<dc:creator>Rajat</dc:creator>
		<pubDate>Thu, 10 Dec 2009 19:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4894</guid>
		<description>I used mod-rewrite in htaccess to generate clean URL with base file test.php.  (I am new to php)
Initial URL: 
www.example.com/test.php?id=1176
New URL:
www.example.com/test/176
Queries are appropriately passed and printed. No problem here.
  

However, the same page can get displayed by the following URL also:
www.example.com/strange/1176
I have a file called strange.php in the root.  test.php and .htaccess are in the same root folder.
Though the rule is only to change test.php to test/
it looks like any ..php file in the root directory can substitute for test and print that URL with content from 1176, as shown above.  Any help?</description>
		<content:encoded><![CDATA[<p>I used mod-rewrite in htaccess to generate clean URL with base file test.php.  (I am new to php)<br />
Initial URL:<br />
<a href="http://www.example.com/test.php?id=1176" rel="nofollow">http://www.example.com/test.php?id=1176</a><br />
New URL:<br />
<a href="http://www.example.com/test/176" rel="nofollow">http://www.example.com/test/176</a><br />
Queries are appropriately passed and printed. No problem here.</p>
<p>However, the same page can get displayed by the following URL also:<br />
<a href="http://www.example.com/strange/1176" rel="nofollow">http://www.example.com/strange/1176</a><br />
I have a file called strange.php in the root.  test.php and .htaccess are in the same root folder.<br />
Though the rule is only to change test.php to test/<br />
it looks like any ..php file in the root directory can substitute for test and print that URL with content from 1176, as shown above.  Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hussain</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4890</link>
		<dc:creator>hussain</dc:creator>
		<pubDate>Thu, 10 Dec 2009 09:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4890</guid>
		<description>Hi i need a little bit of help. my requirement is to fix the page name with extension and variable name and the www because i want to make my URL more short
like below url
OLD URL:
http://www.globalguideline.com/index.php?JScript=first_JavaScript

NEW URL (Required):
http://globalguideline.com/first_JavaScript

Please guide me,
Regards,
Hussain</description>
		<content:encoded><![CDATA[<p>Hi i need a little bit of help. my requirement is to fix the page name with extension and variable name and the www because i want to make my URL more short<br />
like below url<br />
OLD URL:<br />
<a href="http://www.globalguideline.com/index.php?JScript=first_JavaScript" rel="nofollow">http://www.globalguideline.com/index.php?JScript=first_JavaScript</a></p>
<p>NEW URL (Required):<br />
<a href="http://globalguideline.com/first_JavaScript" rel="nofollow">http://globalguideline.com/first_JavaScript</a></p>
<p>Please guide me,<br />
Regards,<br />
Hussain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: george</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4884</link>
		<dc:creator>george</dc:creator>
		<pubDate>Wed, 09 Dec 2009 07:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4884</guid>
		<description>Rewriting yoursite.com/user.php?username=xyz to yoursite.com/xyz

Have you checked zorpia.com.If you type http://zorpia.com/roshanbh233 in browser you can see my profile over there. If you want to do the same kind of redirection i.e http://yoursite.com/xyz to http://yoursite.com/user.php?username=xyz then you can add the following code to the .htaccess file.

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1

It is working on localhost But when itried to fix it on web it not working.
i put a test folder inside WWW root folder inside my test folder i placed neww .htaccess for user friendly URl ouside that there is error redirecting .htaccess i have early written when i test on testing folder file it redirect to error page .

please tel me a solutions to solve this problem..</description>
		<content:encoded><![CDATA[<p>Rewriting yoursite.com/user.php?username=xyz to yoursite.com/xyz</p>
<p>Have you checked zorpia.com.If you type <a href="http://zorpia.com/roshanbh233" rel="nofollow">http://zorpia.com/roshanbh233</a> in browser you can see my profile over there. If you want to do the same kind of redirection i.e <a href="http://yoursite.com/xyz" rel="nofollow">http://yoursite.com/xyz</a> to <a href="http://yoursite.com/user.php?username=xyz" rel="nofollow">http://yoursite.com/user.php?username=xyz</a> then you can add the following code to the .htaccess file.</p>
<p>RewriteEngine On<br />
RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1<br />
RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1</p>
<p>It is working on localhost But when itried to fix it on web it not working.<br />
i put a test folder inside WWW root folder inside my test folder i placed neww .htaccess for user friendly URl ouside that there is error redirecting .htaccess i have early written when i test on testing folder file it redirect to error page .</p>
<p>please tel me a solutions to solve this problem..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ehrajat</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4809</link>
		<dc:creator>ehrajat</dc:creator>
		<pubDate>Fri, 13 Nov 2009 01:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4809</guid>
		<description>Nice tips.
All work for me.
Dont forget to load module rewrite at first.
Because it’s been disable by default if you use xampp.

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Nice tips.<br />
All work for me.<br />
Dont forget to load module rewrite at first.<br />
Because it’s been disable by default if you use xampp.</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shishtawitchg</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4808</link>
		<dc:creator>shishtawitchg</dc:creator>
		<pubDate>Thu, 12 Nov 2009 16:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4808</guid>
		<description>But how can i change my /public_html/folder to folder.mysite.com

means i want to change my root folder to my subdomain with .htaccess</description>
		<content:encoded><![CDATA[<p>But how can i change my /public_html/folder to folder.mysite.com</p>
<p>means i want to change my root folder to my subdomain with .htaccess</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shishtawitchg</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4801</link>
		<dc:creator>shishtawitchg</dc:creator>
		<pubDate>Tue, 10 Nov 2009 10:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4801</guid>
		<description>you are great man........!!</description>
		<content:encoded><![CDATA[<p>you are great man&#8230;&#8230;..!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4795</link>
		<dc:creator>sandeep</dc:creator>
		<pubDate>Sat, 07 Nov 2009 16:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4795</guid>
		<description>Hi,

Can u provide me the url rewriting code for my site (jspservlettutorial.info).

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can u provide me the url rewriting code for my site (jspservlettutorial.info).</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sujal Shakya</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4792</link>
		<dc:creator>Sujal Shakya</dc:creator>
		<pubDate>Fri, 06 Nov 2009 06:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4792</guid>
		<description>Roshan Bro! Nice tut... I have one question regarding this htaccess.... How can we do redirect for sitename/username . 

I mean if i want to pass username sujal in website http://website.com ie http://website.com/sujal equivalent to http://website.com/main.php?username=sujal .. 

what should be done for this?

Thanks in advance..</description>
		<content:encoded><![CDATA[<p>Roshan Bro! Nice tut&#8230; I have one question regarding this htaccess&#8230;. How can we do redirect for sitename/username . </p>
<p>I mean if i want to pass username sujal in website <a href="http://website.com" rel="nofollow">http://website.com</a> ie <a href="http://website.com/sujal" rel="nofollow">http://website.com/sujal</a> equivalent to <a href="http://website.com/main.php?username=sujal" rel="nofollow">http://website.com/main.php?username=sujal</a> .. </p>
<p>what should be done for this?</p>
<p>Thanks in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eiad</title>
		<link>http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html/comment-page-3#comment-4766</link>
		<dc:creator>Eiad</dc:creator>
		<pubDate>Sun, 01 Nov 2009 23:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html#comment-4766</guid>
		<description>Hot Topic Thanks !</description>
		<content:encoded><![CDATA[<p>Hot Topic Thanks !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
