Hi, all.
I've installed Silverstripe on a shared host within a "ss" subdirectory. It currently works fine to show the site landing page at www.mysite.com, but all the page appear as "www.mysite.com/ss/page."
If I enter "www.mysite.com/page," it shows fine, but the links don't default to that. I don't know what to change (anywhere) to remove the "ss" from the url.
There are two .htaccess files after installation: one in the root directory:
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ss
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###
...and one in the "ss" subdirectory:
# Use PHP5CGI as default
AddHandler fcgid-script .php
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
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]
</IfModule>
### SILVERSTRIPE END ###
1) Do I NEED both?
2) Is there a quick solution via .htaccess that doesn't require that I actually MOVE any files? I've searched the forums and the rest of the WWW, but I'm more confused now than when I started.
Thanks!