Installation in sub Domain eg cms

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
Phoenix
Forum Members
Forum Members
Posts: 19
Joined: Mon Jul 14, 2008 9:53 am

Installation in sub Domain eg cms

Post by Phoenix »

I have usually installed CMS in the root directory , however had to change this to avoid conflict with another script.

I tried changed the following


RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]

This works however menu links add the cms to links eg. mydomain/cms/contact.html
In order to fix this I have to change my config.php to
$config['root_url'] = 'http://mydomain';        ---> old $config['root_url'] = 'http://mydomain/cms'; 

Problem stylesheet stops working and admin area as they require cms/

???
Pierre M.

Re: Installation in sub Domain eg cms

Post by Pierre M. »

Hello,

please give your System Info from the admin.
Have you tried to clear the cache ?
Have you tried to rerun the install wizard in the right new place and let it regenerate a working config.php without overwriting the existing databse objects ? (backup before...)

Pierre M.
User avatar
Phoenix
Forum Members
Forum Members
Posts: 19
Joined: Mon Jul 14, 2008 9:53 am

Re: Installation in sub Domain eg cms

Post by Phoenix »

Cleared cache but content is from a sql backup.
Pierre M.

Re: Installation in sub Domain eg cms

Post by Pierre M. »

Pierre M. wrote: please give your System Info from the admin.
Have you tried to rerun the install wizard in the right new place and let it regenerate a working config.php without overwriting the existing databse objects ? (backup before...)
dpicon
New Member
New Member
Posts: 3
Joined: Tue Oct 28, 2008 9:58 pm

Re: Installation in sub Domain eg cms

Post by dpicon »

Phoenix wrote: I have usually installed CMS in the root directory , however had to change this to avoid conflict with another script.

I tried changed the following


RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]

This works however menu links add the cms to links eg. mydomain/cms/contact.html
In order to fix this I have to change my config.php to
$config['root_url'] = 'http://mydomain';        ---> old $config['root_url'] = 'http://mydomain/cms'; 

Problem stylesheet stops working and admin area as they require cms/

???

What about the root_path?
$config['root_path'] = '/home/xxxx/public_html';
User avatar
Phoenix
Forum Members
Forum Members
Posts: 19
Joined: Mon Jul 14, 2008 9:53 am

[Solved]Re: Installation in sub Domain eg cms

Post by Phoenix »

Locked

Return to “[locked] Installation, Setup and Upgrade”