17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1793 Views |
-
Setting Up Other PHP Files Alongside SS?

17 March 2008 at 10:34pm Last edited: 17 March 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.
-
Re: Setting Up Other PHP Files Alongside SS?

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] -
Re: Setting Up Other PHP Files Alongside SS?

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?
-
Re: Setting Up Other PHP Files Alongside SS?

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.
| 1793 Views | ||
|
Page:
1
|
Go to Top |


