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.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

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

Tell SS to ignore directories


Reply

2 Posts   398 Views

Avatar
labman

30 April 2013 at 8:21am Community Member, 5 Posts

If I try to visit a folder that contains a custom app we developed, SS takes over and redirects me to a 404 page. How can I tell it to ignore all requests for that folder (and a few others) and let Apache handle them on its own? For example, if my custom application is located in a folder called foo (http://www.example.com/foo/index.php), SS brings up the 404 Not Found page instead of our application. I'm assuming this has something to do with the mod_rewrite rules in .htaccess but I don't know what.

Avatar
Van

2 May 2013 at 1:51pm Administrator, 25 Posts

Hi labman,

You are quite correct in assuming it is the .htaccess preventing that from happening. You'll find the code you're looking for in the block at the end, wrapped in the <IfModule mod_rewrite.c>.