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:

Archive /

Our old forums are still available as a read-only archive.

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

Setting Up Other PHP Files Alongside SS?


Go to End


4 Posts   2496 Views

Avatar
Doug Avery

9 Posts

17 March 2008 at 10:34pm

Edited: 17/03/2008 10:34pm

This should be an easy one, but I'm stumped...trying to install a PHP calendar in the /calendar directory on the root, but I can't get to the index.php file inside in the browser. I can access any images or other files in the calendar directory through the browser, but the request for an index page just returns a Silverstripe 404.

What do I need to do to get this PHP application working/accessible? Thanks in advance.

Avatar
Fuzz10

Community Member, 791 Posts

18 March 2008 at 12:06am

Exclude the directory where your other application is at from the .htaccess

for example, to exclude the dir "phpmyadmin" :

RewriteRule ^phpmyadmin$ - [L]
RewriteRule ^phpmyadmin/.* - [L]

Avatar
Doug Avery

9 Posts

18 March 2008 at 1:34pm

Hmm, no dice. I'm trying to get domain.com/calendar to work, so I added:

RewriteRule ^calendar$ - [L]
RewriteRule ^calendar/.* - [L]

after SILVERSTRIPE END. No change...any idea on what I'm doing wrong?

Avatar
Fuzz10

Community Member, 791 Posts

18 March 2008 at 9:31pm

Put them in the beginning of the file...

After Rewriteengine On....

Furthermore , I don't need whether it is (still) necessary , but you might also need an exclude-file in your project directory.

See :
http://silverstripe.com/site-builders-forum/flat/1680