Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Setting Up Other PHP Files Alongside SS?

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

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

Page: 1
Go to End
Author Topic: 2073 Views
  • Doug Avery
    Avatar
    9 Posts

    Setting Up Other PHP Files Alongside SS? Link to this post

    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.

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Setting Up Other PHP Files Alongside SS? Link to this post

    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]

  • Doug Avery
    Avatar
    9 Posts

    Re: Setting Up Other PHP Files Alongside SS? Link to this post

    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?

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Setting Up Other PHP Files Alongside SS? Link to this post

    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

    2073 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.