Re: a complex .htaccess redirect question

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

 



On Mon, Sep 17, 2012 at 6:36 AM,  <joydeep@xxxxxxxxxxxxxxx> wrote:
> Hello list,
>
> How can I append .html in-between a link ?
>
> For example  http://www.mydomain.com/en/page?artId=1234  should redirected to
>
> http://www.mydomain.com/en/page.html?artId=1234
>
> page1?artId=1234 needs to be redirected as page1.html?artId=1234
>
> How can I achieve this through .htaccesss ?
>
> I have already tested with
>
> ```````````````
> RewriteRule ^page$ $1.html [L]

You need to capture something with () to use $1.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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