Jump to:

23481 Posts in 18965 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » htaccess woes

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

Page: 1
Go to End
Author Topic: 396 Views
  • outrundawolf
    Community Member
    1 Post

    htaccess woes Link to this post


    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} ^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]


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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.