Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] 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.
Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80
Code (PHP)
#
#rewrite rules & some php settings
#
# @version 1.0
#
<IfModule mod_rewrite.c>
RewriteEngine on
# the base of the site (DEV)
RewriteBase/toscana_beta
# the base of the site (PROD)
#RewriteBase/
# redirect only when the request if not a directory or a file
# the 1st parameter is the language (2 alphabetic characters like "en" or "th")
# redirect the /xx[/] to the home
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?([a-zA-Z]{2})/?$ $1/home.php [R,L]
# redirect for the pictures (no need of parameters)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} .*\.(gif|jpg|jpeg|png|swf|swc|wbmp|xbm|ico)$ [NC]
RewriteRule ^/?([a-zA-Z]{2})/(.*)$ $2 [L]
# redirect for all other pages
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?([a-zA-Z]{2})/(.*)$ $2?lg=$1 [QSA,L]
</IfModule>
# PHP values
php_flag magic_quotes_gpc off
php_flag zlib.output_compression on
#php_flag display_errors off
#php_value session.save_path "/home/8988/data/tmp"
ErrorDocument 404 /404/index.php
[Mon Nov 24 10:23:17 2014] [alert] [client 127.0.0.1] D:/AppServ/www/toscana/.htaccess: Invalid command 'RewriteBase/toscana', perhaps misspelled or defined by a module not included in the server configuration