4572 Posts in 1383 Topics by 1377 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1553 Views |
-
No home when installed to subdirectory

5 February 2009 at 11:15pm
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 /silverRewriteCond %{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?
-
Re: No home when installed to subdirectory

6 February 2009 at 3:19am
Hmm. I haven't managed to reproduce this since I posted, so I imagine this was a caching problem...
-
Re: No home when installed to subdirectory

13 February 2009 at 10:19am
I think you should find it will work using http://hostname/silver/ - add a trailing slash
hope that helps
| 1553 Views | ||
|
Page:
1
|
Go to Top |

