OVH Community, your new community space.

.htaccess z mod_rewrite.c


lukazuki
10-03-2012, 16:57
na końcu takie błędy:

Kod:
[Sat Mar 10 17:51:45 2012] [alert] [client ip] /var/www/domena/.htaccess: Invalid command '\xef\xbb\xbfRewriteRule', perhaps misspelled or defined by a module $
[Sat Mar 10 17:55:12 2012] [alert] [client ip] /var/www/domena/.htaccess: Invalid command '\xef\xbb\xbfRewriteRule', perhaps misspelled or defined by a module $
[Sat Mar 10 17:55:13 2012] [alert] [client ip] /var/www/domena/.htaccess: Invalid command '\xef\xbb\xbfRewriteRule', perhaps misspelled or defined by a module $
[Sat Mar 10 17:55:15 2012] [alert] [client ip] /var/www/domena/.htaccess: Invalid command '\xef\xbb\xbfRewriteRule', perhaps misspelled or defined by a module $

slawqo
10-03-2012, 16:40
Sprawdź najpierw w error.log Apache'a jakie masz tam błędy.

lukazuki
10-03-2012, 16:20
Witam,

Serwer dedykowany mam skonfigurowany pod www, trzymam na nim parę stron na jednej z nich próbuje użyć .htaccess który usuwa /index.php z adresu domeny

przykład:

domena.pl/index.php?/podstrona
użycie tego zmienia na:

domena.pl/podstrona
oto ten .htaccess:

Kod:

Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
użycie kończy się błędem:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, {MyIP} 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.
na hostingu www akurat na dhosting testowałem to .htaccess i działa jak trzeba

a na dedyku co musze zaistalowac aby ten .htaccess zadziałał

Jakieś pomysły?