Subdomain Pretty URLs and default index page loading
Permalink
I'm trying to get the default index page to load from a subdomain install.
Installed to 44.44.444.44/~bd/mrh
so site.php contains
define('BASE_URL', 'http://44.44.444.44');
define('DIR_REL', '/~bd/mrh');
Instead of the IP, I'd like to use the name the IP represents; for example,http://mrh.domainname.com/
By changing the 'BASE_URL' to mrh.domainname.com all pages except the default index page load ok using pretty urls and the page alias. For example,http://mrh.domainname.com/room_rates... loads fine.
If I enterhttp://mrh.domainname.com/, the index page is not found. I expected it to load.
Any suggestions appreciated. Note: I experimented with adding a row to PagePaths for /index, but this caused problems with page editing and adding new subpages.
The .htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~bd/mrh/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Installed to 44.44.444.44/~bd/mrh
so site.php contains
define('BASE_URL', 'http://44.44.444.44');
define('DIR_REL', '/~bd/mrh');
Instead of the IP, I'd like to use the name the IP represents; for example,http://mrh.domainname.com/
By changing the 'BASE_URL' to mrh.domainname.com all pages except the default index page load ok using pretty urls and the page alias. For example,http://mrh.domainname.com/room_rates... loads fine.
If I enterhttp://mrh.domainname.com/, the index page is not found. I expected it to load.
Any suggestions appreciated. Note: I experimented with adding a row to PagePaths for /index, but this caused problems with page editing and adding new subpages.
The .htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~bd/mrh/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Thanks Ryan.
No,http://mrh.domainname.com/index.php... doesn't load the home page. The Concrete "Page Not Found... No page could be found at this address." message appears.
Note:
http://mrh.domainname.com/~virtualdir/mrh/... does load the home page ok.
So, I tried adding "DirectoryIndex index.php" to .htaccess, but didn't see any behavior change. Is .htaccess the correct place for this command?
Thanks.
No,http://mrh.domainname.com/index.php... doesn't load the home page. The Concrete "Page Not Found... No page could be found at this address." message appears.
Note:
http://mrh.domainname.com/~virtualdir/mrh/... does load the home page ok.
So, I tried adding "DirectoryIndex index.php" to .htaccess, but didn't see any behavior change. Is .htaccess the correct place for this command?
Thanks.
Got it working.
Added the following to .htaccess, now thehttp://mrh.domainname.com loads the home page.
DirectoryIndex /~virtualdir/mrh/index.php
Thanks.
Added the following to .htaccess, now thehttp://mrh.domainname.com loads the home page.
DirectoryIndex /~virtualdir/mrh/index.php
Thanks.
http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html...
Does the home page come up when you specify it as:http://mrh.domainname.com/index.php...
?