Re: Redirect a complex URL to another one, either in httpd.conf or with htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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&id=17&Itemid=27 [R,L]


On Tue, Mar 9, 2010 at 11:44 AM, Eric Covener <covener@xxxxxxxxx> wrote:
On Mon, Mar 8, 2010 at 6:48 PM, Igor Cicimov <icicimov@xxxxxxxxx> 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@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux