httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alain Roger" <>
Subject [users@httpd] close to success with RewriteRule
Date Tue, 16 Sep 2008 17:11:57 GMT

i'm closed to succeed with RewriteRule, i just have 1 last issue
when i use:
RewriteRule ^(de|en|fr)/welcome/$    /welcome/index.php?lang=$1 [L]

everything which looks like en/welcome will be rewritten
this works fine... i only have 1 problem. /welcome/... does not exist in the
current context.
it exists only as http://my_ip_address/myroot/welcome/

so i tried to use RewriteBase /my_ip_address/myroot/ but without success.
how can i redirect each rule to http://my_ip_address/myroot/ ?
(without hardcoding each rewriterule as following: RewriteRule
http://my_ip_address/myroot/welcome/index.php?lang=$1 [L])

thanks a lot

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

View raw message