havok89 / Hoosk

Hoosk Codeigniter CMS
http://hoosk.org
Other
128 stars 87 forks source link

How to install Hoosk with apache2 #8

Closed zcfrank1st closed 8 years ago

zcfrank1st commented 8 years ago

I copied Hoosk to the /var/www/html directory and run installing , every thing seemed ok, but when it finished installing, I clicked the login button, it printed 404 not found the /admin url ... how could I fix it? Thank you!

isaiahfrom3r commented 8 years ago

You need a root folder .htaccess.

try this

``` # Set this to /dev for the dev link or / for the live version: RewriteEngine On RewriteBase / # Checks to see if the user is attempting to access a valid file, # if not it sends the request to index.php: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [PT,L] ```