Re: close to success with RewriteRule

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

 



On Tue, Sep 16, 2008 at 1:11 PM, Alain Roger <raf.news@xxxxxxxxx> wrote:
> Hi,
>
> 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
> /welcome/index.php?lang=en
> 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
> ^(de|en|fr)/welcome/$
> http://my_ip_address/myroot/welcome/index.php?lang=$1 [L])

Your rules are in htaccess. if you drop the leading slash of your
replacement string, ti will be interpeted as relative to your
RewriteBase (but your RewriteBase can't just be made up, it has to be
the URL that got you there)



-- 
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