0

I upload the project to a shared hosting account, and the .htaccess:

AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /yuanzhe/mysite/mysite/mysite2.fcgi/$1 [QSA,L]

but found 404 when I visit http://youdishou.com/hello

Thanks!

1 Answer 1

0

Second argument to RewriteRule should be an URL:

RewriteRule ^(.*)$ /mysite2.fcgi/$1 [QSA,L]

Anyway, visit http://youdishou.com/mysite2.fcgi

Looks like your hosting provider does not support fcgi at all. So it's better to contact hosting support to know if there is a way to start Django there. Many providers do not support Django at all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.