httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darly Coupet" <apa...@tsgi.net>
Subject Re: [users@httpd] Rewriterule syntax not working
Date Fri, 17 Nov 2006 00:07:05 GMT
RewriteRule
^/merchant.mv\?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$
http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L]

I have tried the above, but not working.

Thanks, Darly

On 11/16/06, Joshua Slive <joshua@slive.ca> wrote:
>
> On 11/16/06, Darly Coupet <apache@tsgi.net> wrote:
> > Hi,
> >
> > Unable to get Rewriterule working
> >
> > I have modified htaccess file in folder Merchant2 as follows:
> >
> > RewriteEngine On
> > #RewriteRule ^old/URL/path$ http://yourdomain.com/new/path [R=301,L]
> >
> > Redirect 301
> >
> /Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz
> > http://www.sitename.com/index.php?action=view_user&user=2
>
> And what happened?
>
> Luckily, in this case I can guess.
>
> For URL manipulation involving a query string, you must use
> mod_rewrite.  mod_alias and the Redirect directive will not work.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message