21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1049 Views |
-
osCommerce and Silverstripe

1 June 2010 at 3:53am
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/webshopNow 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 folderIt 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 ;)
-
Re: osCommerce and Silverstripe

1 June 2010 at 6:56pm
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 -
Re: osCommerce and Silverstripe

1 June 2010 at 9:46pm
### 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 ###
| 1049 Views | ||
|
Page:
1
|
Go to Top |

