C5 Installed in a Sub-Folder but viewed as in Root

Permalink
I have C5 installed in a sub-folder on a test site and would like all access tohttp://www.mydomain.com to accesshttp://www.mydomain.com/c5

Further I would like all URL's to display aswww.www.mydomain.com/pretty_url... instead ofwww.www.mydomain.com/c5/pretty_url...

I have Pretty URL's working with a .htaccess file in the /c5 folder and have been trying various things in a .htaccess file in the root (public_html) folder to no avail.

Any help much appreciated.

Neville

nevf
 
Mnkras replied on at Permalink Reply
Mnkras
alrighty heres how ya do it, disable pretty urls

move all the stuff from /c5 to the root
but not the .htaccess file
open /config/site.php and change where it says /c5 to so its just insite the quotes (no space between them)

go to the site clear the cache, and re-enable pretty urls (you have to remake the .htaccess file with the new code in the dashboard)
nevf replied on at Permalink Reply
nevf
Thanks, but I would like to to keep Concrete 5 installed in the /c5 folder.
Mnkras replied on at Permalink Reply
Mnkras
then do everything as i said above and move the domain before trying to view the site
cannonf700 replied on at Permalink Best Answer Reply
cannonf700
Nevf,
you can accomplish this with your .htaccess file which should read something like this:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(http://www.)?yourdomain.com$
RewriteCond %{REQUEST_URI} !^/base/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /base/index.php/$1
RewriteCond %{HTTP_HOST} ^(http://www.)?yourdomain.com$
RewriteRule ^(/)?$ yourdomain.com/index.php/$1 [L]

where obviously 'yourdomain.com' is your domain and 'base' is the subfolder where your c5 site is installed.

check out this thread for some more ideas.
http://www.concrete5.org/community/forums/customizing_c5/domain_roo...
nevf replied on at Permalink Reply
nevf
Thanks, this looks very promising.

My test account can't be accessed by a normal domain name yet, which I think (hope) is preventing me from getting this to work. The test URL is vps.xxx.com/~yyy

I'll be setting up C5 on the real account shortly and will try this again then.

Thanks again,
Neville