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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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 woes


Go to End


806 Views

Avatar
outrundawolf

Community Member, 1 Post

25 May 2012 at 11:16pm

Edited: 25/05/2012 11:17pm

Hi,

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:

https://web91.secure-secure.co.uk/goexplorecampervanhire.com/hire-a-campervan/

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>
	SetEnv HTTP_MOD_REWRITE On
	RewriteEngine On
	RewriteBase /

    RewriteCond %{HTTP_HOST} ^https://web91.secure-secure.co.uk$  
    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]
    
 </IfModule>

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