so here is what works perfectly at work but not at home.
at home i get error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@xxxxxxxxxxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
where could be the problem ?
local .htaccess file:
Options +FollowSymlinks
RewriteEngine on
# allow to rewrite the base of RewriteRule
RewriteBase /se_internet #every rewrite rule are based on /se_internet virtual folder so on L:\Webserver\se\internet\ physical folder
RewriteRule ^(de|en|fr)/welcome/$ welcome/index.php?lang=$1 [L]
and my httpd.conf file:
Alias /se_internet/ "L:/Webserver/se/internet/"
<Directory "L:/Webserver/se/internet/">
#Options Indexes MultiViews
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
thanks a lot,
Al.
On Wed, Sep 17, 2008 at 10:41 AM, Alain Roger <raf.news@xxxxxxxxx> wrote:
I still no have been successful to make it works.any idea ?
---------- Forwarded message ----------
From: Alain Roger <raf.news@xxxxxxxxx>
Date: Tue, Sep 16, 2008 at 7:32 PM
Subject: Re: close to success with RewriteRule
To: users@xxxxxxxxxxxxxxxx
this is what i have in my .htaccess file and it seems to be ok according to log:
#.htaccess file
Options +FollowSymlinks
RewriteEngine onand in the log:
RewriteRule ^(de|en|fr)/welcome/$ welcome/index.php?lang=$1 [L]
init rewrite engine with requested uri /se_internet/en/welcome/
pass through /se_internet/en/welcome/
[perdir L:/Webserver/se/internet/] add path info postfix: L:/Webserver/se/internet/en -> L:/Webserver/se/internet/en/welcome/
[perdir L:/Webserver/se/internet/] strip per-dir prefix: L:/Webserver/se/internet/en/welcome/ -> en/welcome/
[perdir L:/Webserver/se/internet/] applying pattern '^(de|en|fr)/welcome/$' to uri 'en/welcome/'
[perdir L:/Webserver/se/internet/] rewrite 'en/welcome/' -> 'welcome/index.php?lang=en'
split uri=welcome/index.php?lang=en -> uri=welcome/index.php, args=lang=en
[perdir L:/Webserver/se/internet/] add per-dir prefix: welcome/index.php -> L:/Webserver/se/internet/welcome/index.php
[perdir L:/Webserver/se/internet/] internal redirect with L:/Webserver/se/internet/welcome/index.php [INTERNAL REDIRECT]
init rewrite engine with requested uri L:/Webserver/se/internet/welcome/index.php
pass through L:/Webserver/se/internet/welcome/index.php
however i get error message:
Bad Request
Your browser sent a request that this server could not understand.
my welcome/index.php really and physically exists inside the folder "L:/Webserver/se/internet/"
so what am i doing wrong ?
:-(
thx.--
Alain
------------------------------------
Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008