Answer the question
In order to leave comments, you need to log in
How to setup .htaccess on django?
Hello.
Need help setting up .htaccess. The problem is that now, after adding some directives to .htaccess, when the site is loaded, such a site address is displayed in the address bar of the browser.
https://mysite.ru/django.wsgi/
This appeared after I added these lines.
RewriteCond %{HTTP:X-Forwarded-Protocol} !=https
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
These redirect rules are needed, but without them the site address looks fine after loading .
How can this be fixed?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question