installing into domainname.com/c5
Permalink
I have installed concrete5 into /c5 sub-directory and I am unclear if I can reference the site from domainname.com. To access the site requires going to domainname.com/c5 which is undesirable.
Am I missing something or does is need to be installed into domainname.com?
I have been through one of the install notes here, which refers to installing multiple sites and using the same core files, yet no luck.
TIA!
Am I missing something or does is need to be installed into domainname.com?
I have been through one of the install notes here, which refers to installing multiple sites and using the same core files, yet no luck.
TIA!
Michael,
Based on your note, all the files/directories must be installed in the webroot then, yes? For example, domainname.com/index.php?
TIA.
Based on your note, all the files/directories must be installed in the webroot then, yes? For example, domainname.com/index.php?
TIA.
yes
Hi,
Normally, You need to install C5 into root directory.
You can try to add this following line into .htaccess :
RewriteBase /c5
Normally, You need to install C5 into root directory.
You can try to add this following line into .htaccess :
RewriteBase /c5
Done, as this is already in the .htaccess file, RewriteBase /c5/.
You may have inadvertently answered my question. The app/files/directories must be installed in the webroot only then, yes?
You may have inadvertently answered my question. The app/files/directories must be installed in the webroot only then, yes?
sorry about that reply, it was to the wrong thread (I have a bunch of tabs open)
follow the tutorial I posted above, you can skip most of the steps just move the files up a dir change the .htaccess and site.php and your good,
follow the tutorial I posted above, you can skip most of the steps just move the files up a dir change the .htaccess and site.php and your good,
Calihopenow said: "The app/files/directories must be installed in the webroot only then, yes?"
No, you can easily install C5 in any sub-directory in your web space, but you will have to access your C5 web site at the URLhttp://www.mysite.com/sub-directory... and make sure that "DIR_REL" (in /config/site.php) and (if using pretty URL's) your .htaccess "RewiteBase" are set to that sub-directory. I hope that makes sense.
No, you can easily install C5 in any sub-directory in your web space, but you will have to access your C5 web site at the URLhttp://www.mysite.com/sub-directory... and make sure that "DIR_REL" (in /config/site.php) and (if using pretty URL's) your .htaccess "RewiteBase" are set to that sub-directory. I hope that makes sense.
Just thought I'd share a way to install c5 into a subdirectory without the /subdirectory/ showing up in the URL.
and in your c5 subdirectory this .htaccess (notice no subdirectory in the value for 'RewriteBase')
I'm actually using this method for a modx installation and it works perfectly... I'm about to setup it up with c5 but in theory it should work just fine.
The above code does not take into account different domain names assigned to different sub-directories but by changing the RewriteCond %{HTTP_HOST} ^(www\.)?your-domain-name\.com$ and applying a new RewriteRule to a different subdirectory should do it.
#root level htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?your-domain-name\.com$ RewriteCond %{REQUEST_URI} !^/c5-subdirectory/ RewriteRule ^(.*)$ c5-subdirectory/$1 [L] <IfModule mod_rewrite.c>
and in your c5 subdirectory this .htaccess (notice no subdirectory in the value for 'RewriteBase')
# -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> # -- concrete5 urls end --
I'm actually using this method for a modx installation and it works perfectly... I'm about to setup it up with c5 but in theory it should work just fine.
The above code does not take into account different domain names assigned to different sub-directories but by changing the RewriteCond %{HTTP_HOST} ^(www\.)?your-domain-name\.com$ and applying a new RewriteRule to a different subdirectory should do it.
http://www.concrete5.org/documentation/installation/moving_a_site...