Skip to content

Login URL doesn't work 404

robiso edited this page Feb 27, 2018 · 5 revisions

How to fix "Sorry, page not found" when visiting some URLs

There are 5 files when you unzip WonderCMS and one of them is a file called .htaccess (notice the dot in the name).

On some systems, files that start their name with a dot are hidden and can't be copied. To make WonderCMS work, you two options: enable the visibility of hidden files on your computer OR manually create a .htaccess file on your server.

2 different possible fixes

  1. Enable visibility of hidden files on your computer.
  • Once you see the file, upload it to your hosting provider along with the other files where you want WonderCMS installed.

OR

  1. Manually create a .htaccess file on your server (or edit an existing one) with the below content:
Options -Indexes
ServerSignature Off
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]
RewriteRule database.js - [F]

Why is .htaccess necessary?

.htaccess is a server file that servers multiple purposes:

  1. Prevents access to database.js.
  2. Creates clean URLS.
  • example.com/index.php?page=home becomes example.com/home
  1. Disables server signature.
  2. Disabled directory and files listing.

Clone this wiki locally