RE:
http://forum.cmsmadesimple.org/index.ph ... #msg132606
$config['root_url'] = 'http://mydomain/cms'; = http://mydomain/cms/index.html
$config['root_url'] = 'http://mydomain'; = http://mydomain/index.html with no Styling or CSS file
So while most post have all the info two steps are never mentioned
The most common problem ruled out
In the .htaccess
change
RewriteBase /cms/
to
RewriteBase /cms
Assuming you have the following settings in your config file
$config['root_url'] = 'http://mydomain';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
You also have this in .htaccess
RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
Step 1
Where is your .htaccess located ?
It needs to be in the subdirectory cms :)
Code: Select all
RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
In the root folder add this to your .htaccess or create a new one adding
Code: Select all
DirectoryIndex index.php index.html
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule !^cms(/?|/.+)$ /cms%{REQUEST_URI} [L]
Try
calguy1000
http://forum.cmsmadesimple.org/index.ph ... 868.0.html
You should find this if you would like to
Install cmsms in a subdirectory
Fix RewriteBase /cms
Fix Prettly urls
Missing style sheet
Admin area missing style sheet
Added
When using multiple Domains use
$config['root_url'] = 'http://'. $_SERVER['SERVER_NAME'].'/cms';