On 3/10/06, Ajitabh Pandey <[EMAIL PROTECTED]> wrote:
> The original URL where the pages are located is:
> http://www.myserver.com/directory1/directory2/?s=ab&id=19
>
> and I want this URL to be written as
> http://www.myserver.com/directory1/virtdir/?s=ab&id=19

> The following are rules which I have written in the
> .htaccess:
>
> RewriteEngine on
> RewriteBase /directory1/
> RewriteRule ^virtdir$    virtdir/ [L,R]
> RewriteRule ^virtdir/$       directory2/?s=ab
> RewriteRule ^virtdir/(.*)    directory2/$1

Shouldn't that read:

RewriteEngine on
RewriteBase /directory1/
RewriteRule ^directory2/(.+) /directory1/virtdir/$1 [R,L]

Thaths
--
"Bart! With $10,000 we'd be millionaires! We could buy all kinds of
       useful things... like love." -- Homer J. Simpson


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to