S
S
slavamironoff2018-12-15 23:16:28
htaccess
slavamironoff, 2018-12-15 23:16:28

What's wrong with .htaccess?

Hello.
I place a site on Django on a hosting, following the hosting instructions.
Filling out .htaccess

AddHandler​ wsgi-script​ ​.wsgi
RewriteEngine​ ​on
RewriteCond​ %{REQUEST_FILENAME}​ ​!-f
RewriteRule​ ^(.*)$​ ​/django.wsgi/$1​ ​[QSA,PT,L]

And I transfer via FZ to the hosting to the desired directory. When entering the site, it gives an error 500.
I look at the logs and see an error:
/home/hostXXXX/MY-DOMEN.RU/htdocs/www/.htaccess: Invalid command 'AddHandler\xe2\x80\x8b', perhaps misspelled or defined by a module not included in the server configuration

What is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-12-16
@dodo512

Invalid command 'AddHandler\xe2\x80\x8b'

AddHandler must be followed by a regular space, not a zero-width unicode space character

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question