Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

.htaccess mess up

Go to End



Community Member, 4 Posts

11 September 2009 at 11:05pm

im having a problem with my site as i tried to go live. i have at least 15 sites hosted on the same server, and im trying to make a silverstripe site in the main directory, what i did was put it in a subfolder and use the mod rewrite to get everything in order. Everything is working now except the canonicalization i guess. When i go to the site using it works and when i use gives me. The website server has not been able to respond to your request. Here is what i have in the .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{HTTP_HOST} ^(www.)?$

RewriteCond %{REQUEST_URI} !^/mainsitefolder/
#RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(.php)$

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^(www.)?$
RewriteRule .* mainsitefolder/sapphire/main.php?url=%1&%{QUERY_STRING}


any help would be much appreciated