Two installations of concrete5 - one root, one sub-directory
Permalink
March 25, 2013 at 11:52 AM
I have two installations of concrete5 (5.6.1): one installed at the root level, the other installed in a sub-directory called "development". The problem I have is that I cannot get to the "development" directory login screen; instead I get a 404 error page from the concrete5 installation at the root level. However, going to /development takes me to the root site.
My .htaccess file for the root directory:
Options + FollowSymLinks - MultiViews - Indexes
# -- concrete5 urls start --
< IfModule mod_rewrite. c>
RewriteEngine On
RewriteBase /
RewriteCond % { REQUEST_FILENAME} !- f
RewriteCond % { REQUEST_FILENAME} !- d
RewriteRule ^( .* ) $ index. php/ [ L]
</ IfModule>
# -- concrete5 urls end --
# gzip and speed improvements
AddOutputFilterByType DEFLATE text/ plain
AddOutputFilterByType DEFLATE text/ html
AddOutputFilterByType DEFLATE text/ xml
AddOutputFilterByType DEFLATE text/ css Options + FollowSymLinks - MultiViews - Indexes
# -- concrete5 urls start --
< IfModule mod_rewrite. c>
RewriteEngine On
RewriteBase /
RewriteCond % { REQUEST_FILENAME} !- f
RewriteCond % { REQUEST_FILENAME} !- d
RewriteRule ^( .* ) $ index. php/ [ L]
</ IfModule>
# -- concrete5 urls end --
# gzip and speed improvements
AddOutputFilterByType DEFLATE text/ plain
AddOutputFilterByType DEFLATE text/ html
AddOutputFilterByType DEFLATE text/ xml
AddOutputFilterByType DEFLATE text/ css
AddOutputFilterByType DEFLATE text/ xhtml
AddOutputFilterByType DEFLATE text/ javascript
AddOutputFilterByType DEFLATE application/ xml
AddOutputFilterByType DEFLATE application/ xhtml+ xml
AddOutputFilterByType DEFLATE application/ rss+ xml
AddOutputFilterByType DEFLATE application/ javascript
AddOutputFilterByType DEFLATE application/ x- javascript
ExpiresActive On
ExpiresDefault "access plus 30 days"
< IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters extend_cache, inline_javascript
</ IfModule>
My .htaccess file for the /development/ directory:
Options + FollowSymLinks - MultiViews - Indexes
# -- concrete5 urls start --
< IfModule mod_rewrite. c>
RewriteEngine On
RewriteBase / development/
RewriteCond % { REQUEST_FILENAME} !- f
RewriteCond % { REQUEST_FILENAME} !- d
#RewriteRule ^(.*)$ index.php/$1 [L]
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^( .* ) $ index. php/ [ L]
</ IfModule>
# -- concrete5 urls end --
# gzip and speed improvements
AddOutputFilterByType DEFLATE text/ plain
AddOutputFilterByType DEFLATE text/ html Options + FollowSymLinks - MultiViews - Indexes
# -- concrete5 urls start --
< IfModule mod_rewrite. c>
RewriteEngine On
RewriteBase / development/
RewriteCond % { REQUEST_FILENAME} !- f
RewriteCond % { REQUEST_FILENAME} !- d
#RewriteRule ^(.*)$ index.php/$1 [L]
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^( .* ) $ index. php/ [ L]
</ IfModule>
# -- concrete5 urls end --
# gzip and speed improvements
AddOutputFilterByType DEFLATE text/ plain
AddOutputFilterByType DEFLATE text/ html
AddOutputFilterByType DEFLATE text/ xml
AddOutputFilterByType DEFLATE text/ css
AddOutputFilterByType DEFLATE text/ xhtml
AddOutputFilterByType DEFLATE text/ javascript
AddOutputFilterByType DEFLATE application/ xml
AddOutputFilterByType DEFLATE application/ xhtml+ xml
AddOutputFilterByType DEFLATE application/ rss+ xml
AddOutputFilterByType DEFLATE application/ javascript
AddOutputFilterByType DEFLATE application/ x- javascript
ExpiresActive On
ExpiresDefault "access plus 30 days"
< IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters extend_cache, inline_javascript
</ IfModule>
I also updated my site.php file in development to reflect the new directory:
define ( 'DIR_REL' , '/development' ) ;
What's odd is that this server also has other sub-directories containing various files (Wordpress, random code testing, etc.) and I can load those without issue.
Anyone have any ideas as to what is causing this?