Hello.
I have silverstripe installed on a shared host. As the website is not finished, it is currently residing on http://test.rainyday.at. My problem is that the base url is http://test.rainyday.at/silverstripe/, I rather want only http://test.rainyday.at.
The funny thing is that if you enter links manually like: http://test.rainyday.at/design it works, but silverstripe automatically sets it to http://test.rainyday.at/silverstripe/design.
I guess the problem has to do something with the rewrite engine. The silverstripe installation resides in the following location on the server: /home/"username"/public_html/silverstripe. Within the directory there is a .htaccess with the following rewrite commands:
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]
In the /home/"username"/public_html/ directory there is another .htaccess file with the following rewrite commands:
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?test\.rainyday.at$ [NC]
RewriteCond %{REQUEST_URI} !^/silverstripe/ [NC]
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{DOCUMENT_ROOT}/silverstripe%{REQUEST_URI}/ -d
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R,L]
RewriteCond %{HTTP_HOST} ^(www\.)?test\.rainyday.at$ [NC]
RewriteCond %{REQUEST_URI} !^/silverstripe/ [NC]
RewriteRule ^(.*)$ /silverstripe/$1 [L]
Both .htaccess files were automatically generated! I am not an expert in this rewrite engine stuff, but I guess in the later commands is something, which disturbs the base url????
It would be amazing if there is anybody out there, who can help. I am already fed up with this issue.