Running Concrete5 version 7 or 8 from a subdirectory?


I have installed Concrete5 into a subdirectory (/cms2) on my apache web host with PHP 7. I have also setup my .htaccess file to rewrite urls to /. My .htaccess file is here:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cms2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]


If I remove the subdirectory from any address (except the root index file [meaning /cms2/index.php]) the site works fine. However, If I try to remove the /cms2/ from the rott index.php file or enter the web address the rewrite does not occur. It reverts to / and presents me with a file list on my web host.

I've read over a few posts talking about insert some PHP code in the index.php file, and a few .htaccess options

This is the one I want to make work:

I don't know if I am being dense today or not. For those of you who have C5 working in a Subdirectory how did you ultimately get it to redirect every request to the subdirectory without showing it to the end user?

(I'd love to make this a .htaccess file edit rather than modifying code that would have to be updated with each C5 update :) )

I am currently running with Pretty URLS on and Cache off and empty

View Replies:
bayleafmedia replied on at Permalink Reply
I should amend this a bit.

When I type "" my browsers will take me there... to the full length address: ""