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.

Archive

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

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

Setting Up Other PHP Files Alongside SS?


Reply

4 Posts   2110 Views

Avatar
Doug Avery

17 March 2008 at 10:34pm (Last edited: 17 March 2008 10:34pm), 9 Posts

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

18 March 2008 at 12:06am Community Member, 787 Posts

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

18 March 2008 at 1:34pm 9 Posts

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

18 March 2008 at 9:31pm Community Member, 787 Posts

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