Apache
When you go the the download link and you get a 404 error please check if the .htaccess file exists in the main directory of Droppy (so not the uploads/ directory). Sometimes it happens that the .htaccess file gets hidden by your OS when you're trying to find it or uploading it to your server, to change your file view please look here:
For windows:
http://windows.microsoft.com/en-us/windows/show-hidden-files#show-hidden-files=windows-7
For mac:
http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
For (most) linux distributions:
http://www.ghacks.net/2009/04/16/linux-tips-view-hidden-files/
Enable .htaccess
Some Apache setups require you to enable the htaccess file before you're able to use it, please follow the steps over here to enable the rewrite support https://www.digitalocean.com/community/tutorials/how-to-rewrite-urls-with-mod_rewrite-for-apache-on-ubuntu-16-04
Nginx
Nginx uses a different configuration to do the URL rewriting, this configuration should be in your Nginx directory (E.g. /etc/nginx/). If you're on a shared hosting account we will suggest you to ask your hosting provider where to find the configuration file.
For Droppy you should use the following code to apply the URL rewrite to your website:
server { server_name yourdomain.com; root /var/www/html; index index.html index.php; location / { # Check if a file or directory index file exists, else route it to index.php. try_files $uri $uri/ /index.php; } location ~* \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi.conf; } # Deny for accessing .htaccess files for Nginx location ~ /\.ht { deny all; } # Deny for accessing codes location ~ ^/(application|system|tests)/ { return 403; } }
Make sure to check the configuration and make the necessary changes.
Now save the configuration and restart Nginx to apply the changes.
Windows Server (IIS)
IIS on Windows doesn't understand the included .htaccess file of Droppy. You'll need to follow the steps below to allow Droppy to rewrite the URLs to the right files.
1. Open your IIS Manager and select your website in the list, in this example this is the default website:
2. Then click on the URL Rewrite option. If you're not seeing this option then head over to step 3. If you are seeing this option then you may skip to step 4.
3. To install the URL Rewrite module please head over to https://www.iis.net/downloads/microsoft/url-rewrite and install the package on your windows server.
4. On the URL rewrite page click the option "Import rules" on the right side of the window.
5. Now choose the .htaccess file from the root of your Droppy directory, click the button "import" and finally hit "Apply" on the right side of the window
And that's it, you should no longer be seeing any 404 errors now.
Comments
0 comments
Article is closed for comments.