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, biapar, Willr, Ingo, swaiba, simon_w

htaccess woes




Community Member, 1 Post

25 May 2012 at 11:16pm

Edited: 25/05/2012 11:17pm


I expect this is pretty simple, but I cant get my head around it.
I have a payment page on my SS site and it runs from a secure link given to me by my hosting provider, completely different to my normal SS URL:

Whenever I navigate to the URL I get:

The requested URL /sapphire/main.php was not found on this server.

Here is the fix I have tried to apply to my access file:

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /

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

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


If anyone could shed any light on this that would be great.