I have created a website in a droplet, and I have uploaded sendy files to a subdirectory. After installing the sendy it gives 404 error. In their documentation it says that i need to enable mod_rewrite. I have tried all answers here in digitalocean community nothing fixed for me.
Before reading further, please verify that the .htaccess file has been uploaded.
As part of the compatibility checklist, mod_rewrite needs to be enabled.
I tried to edit .htaccess file and tried to add try_files $uri $uri/ /index.php?$args; in server { but nothing worked.
Can anyone help me out with this problem? Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Okay, so nginx doesn’t use .htaccess, delete it, it’s useless.
And it should be
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
Also make sure php5-fpm or hhvm is working! (depends on what you use)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.