Article

Files

Website pages and download links not working after install (404 errors)

Problem

After installing the script none of the html links are working and neither are the generated file download urls.

Fix (Apache)

This is generally one of the following issues:

ModRewrite hasn't been enabled within Apache. Contact your host to have it enabled.

You haven't uploaded the .htaccess included in the root of the script download. Sometimes certain operating systems don't show files starting with a dot. Ensure it's appearing in the root of your installation. Anti Virus software has also been known to hide the .htaccess so ensure this is temporarily disabled. If you can't see the file, you can download it from this article on the lefthand side (ensure you rename it with a dot at the start when you upload it to your site).

You've installed the script in a sub-folder. If this is the case you'll need to amend the .htaccess file to include your sub-folder path. In .htaccess find:

RewriteBase /

Replace with:

RewriteBase /yoursubfolder/

If the .htaccess file has been uploaded, Apache may be set to ignore these files. In your Apache config file (sometimes called apache2.conf) set "AllowOverride All" similar to this:

<Directory /var/www/>
AllowOverride All
</Directory>

Fix (Nginx)

This is generally one of the following issues:

The Nginx rewrite rules haven't been added to your Nginx site config file. See the "___NGINX_RULES.txt" file in the root of the script download for the correct Nginx rules (also attached to this article).

The path within your Nginx rules is incorrect. Ensure the root path points at your site root. Example:

root /usr/share/nginx/html;

You have not restarted Nginx after making the above changes. Restart via SSH. Example: (this will change depending on your Linux distro)