Hello,
I have seen some of the caching issues before related to some installs, but this seems a bit different. I have installed silverstripe 2.2.3 to
http://hostname/silver
(note that hostname is internal, and so not fqdn)
The about-us and contact-us page works fine, and if I go to http://hostname/silver/home, the url is rewritten as http://hostname/silver and the home page is presented.
However, if I go to http://hostname/silver directly, I get an index listing of the site. I have tried this with multiple browsers and clearing cache and I get the same result.
My .htaccess is:
### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>
RewriteEngine On
RewriteBase /silver
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
In the behaviour tab of the home page, I have tried a whole bunch of things to see if the behaviour is the issue:
hostname, hostname/silver, http://hostname/silver, hostname.domain.local/silver
Once I get to the site via the redirect, the index list no longer comes up.
Any ideas?