views:

49

answers:

2

i have a Bluehost hosting account, and i manually configure django with this tutorial, but now i need to run php scripts into a subdomain or in subfolder, how can i do that? my root .htaccess look like this

AddHandler fcgid-script .fcgi
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(django\.fcgi/.*)$ - [L]
RewriteRule ^(.*)$ django.fcgi/$1 [L]

help me please. Thanks!

A: 

I've got it, just change a little htaccess and ready, stay this way for those who have the same problem:

AddHandler fcgid-script .fcgi
AddHandler application/x-httpd-php5s .php
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /
RewriteRule ^(subfolder/.*)$ - [L]
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(django\.fcgi/.*)$ - [L]
RewriteRule ^(.*)$ django.fcgi/$1 [L]

Thanks!

eos87
+1  A: 

It would actually be easier to serve from a subdomain, configured in its own VirtualHost block.

R. Bemrose
thanks, but is not possible, because this is a shared hosting account.
eos87