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:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Use standalone PHP in a subdirectory

Go to End

19 Posts   5857 Views


Community Member, 267 Posts

1 June 2010 at 11:02pm

sorry, but that also doesn't work.

Is this really the way to exclude SilverStripe from looking into some folders?

Is there another way to make sure SS doesn't say 'page not found' in 'Non-SilverStripe-Folders?'


Community Member, 267 Posts

1 June 2010 at 11:21pm

Edited: 01/06/2010 11:25pm

Correction, it did work in some way:

RewriteCond %{REQUEST_URI} !/webshop/catalog

When I access
I automatically get the index.php :) so that is good news! Before I got the 'Page Not Found' message.

But when I try to login in the admin part (webshop/catalog/admin)
I get the firefox error: Page isn't redirecting correctly
(or something like that, had to translate it from dutch to enlish)

The php script redirects after a succesfull login to:

         header('Location: ' . HTTPS_CATALOG_SERVER . $psRefer);

Where $psRefer is:

	//if refer was passed in, use it. else default to index
	$psRefer = (strlen(@$_POST['psRefer'])>0) ? $_POST['psRefer'] : DIR_WS_ADMIN.'index.php';


  define('DIR_WS_ADMIN', '/webshop/catalog/admin/'); 


Community Member, 267 Posts

1 June 2010 at 11:43pm

Edited: 01/06/2010 11:44pm

Ok i Solved it :)

I used the osCommerce 'Log-in Log-out 1.7' module.

index.php includes 'applictation_top.php' which created a loop in loading the page. So Firefox/Safari couldn't load them.

For the people interessted:


// login logout 1.7
if($_SERVER['SERVER_PORT'] == 80) {
   Header("Location: " . HTTPS_CATALOG_SERVER . DIR_WS_ADMIN);


// login logout 1.7
if(getenv('HTTPS') == 'OFF') {
   Header("Location: " . HTTPS_CATALOG_SERVER . DIR_WS_ADMIN);

Go to Top