Jump to:

22976 Posts in 11667 Topics by 2826 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: 321 Views
  • outrundawolf
    Avatar
    Community Member
    1 Post

    htaccess woes Link to this post

    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:

    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.

    321 Views
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.