Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » osCommerce and Silverstripe

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: 1260 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    osCommerce and Silverstripe Link to this post

    Hello ppl,

    I've got SS 2.3.7 installed in the root. eg www.mysite.com
    I recently installed osCommerce in www.mysite.com/webshop

    Now when i want to acces a folder (eg www.mysite.com/webshop/admin) it gives the SilverStripe error: Page not found.
    But I dont want SS to give me this error, it must do the normal action: go to the index.php in the folder

    It would be easy just typing in the index.php, but I want to secure the admin directory with a .htaccess & .htpasswd. I've done this now, but when I log-in I get the SilverStripe error: 'page not found'

    Please help ;)

  • AdamJ
    Avatar
    Community Member
    145 Posts
  • borriej
    Avatar
    Community Member
    267 Posts

    Re: osCommerce and Silverstripe Link to this post

    Added rule to the .htaccess which is in the root of the website:

    - RewriteCond %{REQUEST_URI} !/http://www.mydomain.nl/webshop/catalog/admin
    - also added an empty file called: '__manifest_exclude' into the admin folder

    (mydomain replaced by my website ofcourse)

    It still doens't work:
    - I get the log-in box, enter user/pass and then: Website Error - Not Found

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: osCommerce and Silverstripe Link to this post

    ### SILVERSTRIPE START ###
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    htaccess looks like this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    RewriteCond %{REQUEST_URI} !/http://www.mydomain.nl/webshop/catalog/admin/index.php

    </IfModule>

    ### SILVERSTRIPE END ###

    1260 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.