httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Redirect a complex URL to another one, either in httpd.conf or with htaccess
Date Tue, 09 Mar 2010 01:24:28 GMT
This works for me tested

RewriteCond %{QUERY_STRING} ^opt=dom_cont&task=view&id=18&Itemid=28$
RewriteRule ^/index.php$
https://www.domain.com/index.php?opt=dom_cont&task=view&<https://www.domain.com/index.php?opt=dom_cont&task=view&id=17&Itemid=27>id=17&Itemid=27
[R,L]


On Tue, Mar 9, 2010 at 11:44 AM, Eric Covener <covener@gmail.com> wrote:

> On Mon, Mar 8, 2010 at 6:48 PM, Igor Cicimov <icicimov@gmail.com> wrote:
>
> > RewriteRule ^/index.php$
> >
> https://www.domain.com/index.php?opt=dom_cont&task=view&&id=%1-1&Itemid=%2-1
> > [R,L]
> >
>
> You probably need a RewriteMap to do that increment.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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