Skip to content
Brad edited this page May 2, 2013 · 3 revisions

.htaccess for non root installation example

Installing "No-CMS" on a subdomain or inside of a sub-folder of the server root may require mod_rewrite over-rides via the .htaccess file. This options will only work if your server is configured with the allowoverrides all in the httpd.conf. The default .htaccess file included with the No-CMS installer assumes you are installing No-CMS into your servers root web folder (IE: /var/www). If this is not the case, the following example describes changing the RewriteBase apache directive.

Example

` Options +FollowSymLinks -Indexes RewriteEngine On RewriteBase /client_acme_corporation/nocms_install_folder/

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/ [L,QSA]

<IfModule !mod_rewrite.c> ErrorDocument 404 /index.php `

Clone this wiki locally