sky
Verified User
- Joined
- Nov 12, 2004
- Messages
- 318
[fixed] Strange error with apache and htaccess
Hello
Im not sure if this is with last update of DA or not... but today when i add a new domain, then i add my normal htaccess file ... i get a apache internal error.
My htaccess is :
I get no error if i dont combine the charset settings and the rewriteengine.
Not errors, but the rewrite is not working...
I use this one on many website ... always worked untill now and i dont think i have changed something that can mess with apache ...
This problem only occured on new accounts.
All old accounts are working fine.
In apache logs this is what i get :
Any ideas ?
Thank you for your help.
I can provide more information...
Regards.
Hello
Im not sure if this is with last update of DA or not... but today when i add a new domain, then i add my normal htaccess file ... i get a apache internal error.
My htaccess is :
Code:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond $1 !^(index\.php|cgi\-bin|robots\.txt|medias)
RewriteRule ^(.*)$ /index.php/$1 [L]
I get no error if i dont combine the charset settings and the rewriteengine.
Not errors, but the rewrite is not working...
I use this one on many website ... always worked untill now and i dont think i have changed something that can mess with apache ...
This problem only occured on new accounts.
All old accounts are working fine.
In apache logs this is what i get :
[Tue Dec 06 17:46:05 2011] [alert] [client 78.225.243.125] /home/europe/domains/domain.com/public_html/.htaccess: AddDefaultCharset takes one argument, The name of the default charset to add to any Content-Type without one or 'Off' to disable
Any ideas ?
Thank you for your help.
I can provide more information...

Regards.
Last edited: