<?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: .Htaccess rewrites, Mod_Rewrite Tricks and Tips</title>
	<atom:link href="http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Thu, 18 Mar 2010 14:15:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Jal Ulati</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-127678</link>
		<dc:creator>Jal Ulati</dc:creator>
		<pubDate>Thu, 18 Mar 2010 14:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-127678</guid>
		<description>@ IMEL

IMEL wrote: &quot;Hi,
I just want to ask one question, for example: if I have website with URL address http://www.example.com/index.php?option=com_user
But I just want to display URL like “http://www.example.com/“.
What should I do?
Thanks in advance&quot;

Imel, I also would like to know the answer to your question. It would seem to me to be a fundamental problem, and surely very simple to solve. And yet, I&#039;ve searched for too long and found NO answer.

How can this be? What are we missing?</description>
		<content:encoded><![CDATA[<p>@ IMEL</p>
<p>IMEL wrote: &#8220;Hi,<br />
I just want to ask one question, for example: if I have website with URL address http://www.example.com/index.php?option=com_user<br />
But I just want to display URL like “http://www.example.com/“.<br />
What should I do?<br />
Thanks in advance&#8221;</p>
<p>Imel, I also would like to know the answer to your question. It would seem to me to be a fundamental problem, and surely very simple to solve. And yet, I&#8217;ve searched for too long and found NO answer.</p>
<p>How can this be? What are we missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wasim</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-122726</link>
		<dc:creator>Wasim</dc:creator>
		<pubDate>Fri, 05 Mar 2010 08:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-122726</guid>
		<description>too good man.. i almost solved my problem of .htaccess by reading this article. just a quick question.. i am stuck on one of my requirement, here it goes ..

i want to redirect any url from my website that look like this..
&lt;code&gt;&quot;www.mysite.com/detail.php?cid=12&amp;cname=Website&amp;mid=345&amp;mname=My-Web&quot;&lt;/code&gt;

  TO

&lt;code&gt;&quot;www.mysite.com/Website/My-Web.html&quot;&lt;/code&gt;

would really appreciate any help from anyone :)
Thanks</description>
		<content:encoded><![CDATA[<p>too good man.. i almost solved my problem of .htaccess by reading this article. just a quick question.. i am stuck on one of my requirement, here it goes ..</p>
<p>i want to redirect any url from my website that look like this..<br />
<code>"www.mysite.com/detail.php?cid=12&#038;cname=Website&#038;mid=345&#038;mname=My-Web"</code></p>
<p>  TO</p>
<p><code>"www.mysite.com/Website/My-Web.html"</code></p>
<p>would really appreciate any help from anyone :)<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adnan</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-122284</link>
		<dc:creator>Adnan</dc:creator>
		<pubDate>Wed, 03 Mar 2010 10:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-122284</guid>
		<description>Hi , i m having a problem ,

i am using 

cat/ambulance/12

and this is redirected to the page written in htaccess, i just want to use the same url as above. how can it be possible</description>
		<content:encoded><![CDATA[<p>Hi , i m having a problem ,</p>
<p>i am using </p>
<p>cat/ambulance/12</p>
<p>and this is redirected to the page written in htaccess, i just want to use the same url as above. how can it be possible</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: art.mania</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-120448</link>
		<dc:creator>art.mania</dc:creator>
		<pubDate>Thu, 25 Feb 2010 21:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-120448</guid>
		<description>Hi, 

very cool post!! thanks a lot!! 

I read all your article and tried to sort out my problem, but I&#039;m still having trouble :/ I would appreciate you so much if you give your few minutes to see my issue; (explained at the link below)

http://stackoverflow.com/questions/2319033/404-error-page-redirection-and-404-page-200-ok-header-issues

I appreciate so much! I&#039;m fighting with this issue for weeks, but couldnot make even a step :(</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>very cool post!! thanks a lot!! </p>
<p>I read all your article and tried to sort out my problem, but I&#8217;m still having trouble :/ I would appreciate you so much if you give your few minutes to see my issue; (explained at the link below)</p>
<p>http://stackoverflow.com/questions/2319033/404-error-page-redirection-and-404-page-200-ok-header-issues</p>
<p>I appreciate so much! I&#8217;m fighting with this issue for weeks, but couldnot make even a step :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Q</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-115840</link>
		<dc:creator>Q</dc:creator>
		<pubDate>Thu, 17 Dec 2009 07:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-115840</guid>
		<description>Wanting to do away with .htaccess to speed server... How to move these commands to httpd.config?

&lt;pre&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteCond %{SERVER_PORT} ^80$
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L,QSA]&lt;/pre&gt;


Simply moving them over doesn&#039;t work.
Years ago it took me forever to figure out the above commands to help search rankings with the non www thingy.</description>
		<content:encoded><![CDATA[<p>Wanting to do away with .htaccess to speed server&#8230; How to move these commands to httpd.config?</p>
<pre>RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteCond %{SERVER_PORT} ^80$
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L,QSA]</pre>
<p>Simply moving them over doesn&#8217;t work.<br />
Years ago it took me forever to figure out the above commands to help search rankings with the non www thingy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hussain</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-114772</link>
		<dc:creator>Hussain</dc:creator>
		<pubDate>Thu, 10 Dec 2009 09:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-114772</guid>
		<description>Hi i need a little bit of help. my requirement is to fix the page name with extension and variable name because i want to make my URL more short
like below url
OLD URL:
site.com/index.php?JScript=first_JavaScript

NEW URL (Required):
site.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 because i want to make my URL more short<br />
like below url<br />
OLD URL:<br />
site.com/index.php?JScript=first_JavaScript</p>
<p>NEW URL (Required):<br />
site.com/first_JavaScript</p>
<p>Please guide me,<br />
Regards,<br />
Hussain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FMut</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-114726</link>
		<dc:creator>FMut</dc:creator>
		<pubDate>Thu, 10 Dec 2009 02:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-114726</guid>
		<description>Nice examples... this helped heaps.
I&#039;m still having trouble doing the following; if anyone cares to guide me..

I have a PHP framework that uses root level index.php, so a typical URL will look like this:
www.domain.com/index.php/argument1/argument2/etc

it is simple enough to remove the index.php so the URL looks pretty, like:
www.domain.com/argument1/argument2/etc

Where I get stuck is trying to &quot;replace&quot; the index.php with a &quot;KEYWORD&quot; - to help with SEO... e.g.
www.domain.com/KEYWORD/argument1/argument2/etc
but retain the underlying URL (as far as PHP application is concerned) as
www.domain.com/index.php/argument1/argument2/etc

Is this possible?</description>
		<content:encoded><![CDATA[<p>Nice examples&#8230; this helped heaps.<br />
I&#8217;m still having trouble doing the following; if anyone cares to guide me..</p>
<p>I have a PHP framework that uses root level index.php, so a typical URL will look like this:<br />
www.domain.com/index.php/argument1/argument2/etc</p>
<p>it is simple enough to remove the index.php so the URL looks pretty, like:<br />
www.domain.com/argument1/argument2/etc</p>
<p>Where I get stuck is trying to &#8220;replace&#8221; the index.php with a &#8220;KEYWORD&#8221; &#8211; to help with SEO&#8230; e.g.<br />
www.domain.com/KEYWORD/argument1/argument2/etc<br />
but retain the underlying URL (as far as PHP application is concerned) as<br />
www.domain.com/index.php/argument1/argument2/etc</p>
<p>Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vector Thorn</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-110268</link>
		<dc:creator>Vector Thorn</dc:creator>
		<pubDate>Thu, 19 Nov 2009 12:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-110268</guid>
		<description>Ah, i got it; i was using them for redirects, and now i see that by not actually redirecting you can accomplish this.</description>
		<content:encoded><![CDATA[<p>Ah, i got it; i was using them for redirects, and now i see that by not actually redirecting you can accomplish this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vector Thorn</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-110180</link>
		<dc:creator>Vector Thorn</dc:creator>
		<pubDate>Wed, 18 Nov 2009 23:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-110180</guid>
		<description>With all the mod_rewrite articles out there that show you how to redirect a request, none of them show you how to keep the url in the address bar the same?

For example, you say you can redirect:
/somepage-1234.html

to the page:
/?somepage=1234 [R=301]


But when you do that, the user is taken to that page, and it is shown in the address bar as the dynamic page. So how to you keep the original url in the address bar?</description>
		<content:encoded><![CDATA[<p>With all the mod_rewrite articles out there that show you how to redirect a request, none of them show you how to keep the url in the address bar the same?</p>
<p>For example, you say you can redirect:<br />
/somepage-1234.html</p>
<p>to the page:<br />
/?somepage=1234 [R=301]</p>
<p>But when you do that, the user is taken to that page, and it is shown in the address bar as the dynamic page. So how to you keep the original url in the address bar?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juan fernando</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-109098</link>
		<dc:creator>juan fernando</dc:creator>
		<pubDate>Thu, 12 Nov 2009 06:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#comment-109098</guid>
		<description>I have several domains point to the same htdocs directory.
i have some static content that resides under &lt;code&gt;htdocs/domain.com/images/blah.jpg&lt;/code&gt; so how do i take a request that is &lt;code&gt;images/blah.jpg&lt;/code&gt; and properly check against &lt;code&gt;htdocs/domain.com/images/blah.jpg&lt;/code&gt; and if the file doesn&#039;t exist then go to &lt;code&gt;view.php?search=images/blah.jpg&lt;/code&gt; ? 

&lt;pre&gt;RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %1/%{REQUEST_FILENAME} -f
RewriteCond %1/%{REQUEST_FILENAME} -d
RewriteRule index.php?=%{REQUEST_FILENAME} [L]&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>I have several domains point to the same htdocs directory.<br />
i have some static content that resides under <code>htdocs/domain.com/images/blah.jpg</code> so how do i take a request that is <code>images/blah.jpg</code> and properly check against <code>htdocs/domain.com/images/blah.jpg</code> and if the file doesn&#8217;t exist then go to <code>view.php?search=images/blah.jpg</code> ? </p>
<pre>RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %1/%{REQUEST_FILENAME} -f
RewriteCond %1/%{REQUEST_FILENAME} -d
RewriteRule index.php?=%{REQUEST_FILENAME} [L]</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
