RewriteRule

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

 



Hi,

i would like to redirect all requests as following:

http://www.mywebsite.com/en/logon/index.php => http://www.mywebsite.com/logon/index.php?lang=en
http://www.mywebsite.com/fr/logon/logon.php => http://www.mywebsite.com/logon/logon.php?lang=fr
http://www.mywebsite.com/en/logon/hello.php => http://www.mywebsite.com/logon/hello.php?lang=en
http://www.mywebsite.com/en/welcome/index.php => http://www.mywebsite.com/welcome/index.php?lang=en

so i tried to do the following rule but without success.
RewriteRule ^(sk|en|fr)/(*)/(*)$    $2/$3?lang=$1 [L]

so how can i write a rule that will proceed:
- whatever the folder is: logon, welcome, ....
- whatever file it is: index.php (or nothing), hello.php,....

thanks a lot,
--
Alain
------------------------------------
Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

[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