Reply
.htaccess & php incompatability
Old 03-06-2004, 01:59 PM .htaccess & php incompatability
Average Talker

Posts: 22
I have just changed webservers. For some reason, my .htaccess file is preventing me from loading any .php files on my site, instead going to 404.

The server is running PHP 4.3.3, and this is the .htaccess I am using:

Code:
ErrorDocument 401 http://afireinside.org/401.html
ErrorDocument 403 http://afireinside.org/403.html
ErrorDocument 404 http://afireinside.org/404.html

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

<Files .htaccess>
order allow,deny
deny from all
</Files>
Has anyone any ideas why this is happenning, or can suggest a different way to write my .htaccess file?
__________________
humour: afireinside.org / subvulture.com
music: entertainmentdeath.com
subvulture is offline
Reply With Quote
View Public Profile Visit subvulture's homepage!
 
When You Register, These Ads Go Away!
Old 03-07-2004, 10:16 PM
Average Talker

Posts: 22
I added the line

Code:
AddHandler php-script .php
and I am now prompted to save .php files rather than them display in the browser.

Code:
AddHandler server-parse .php
does the same thing.

Any assistance is appreciated; half my site is down until I fix this.
__________________
humour: afireinside.org / subvulture.com
music: entertainmentdeath.com
subvulture is offline
Reply With Quote
View Public Profile Visit subvulture's homepage!
 
Old 03-07-2004, 11:00 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
Talk to your webhost and make sure that appache has php installed properly and setup in the .conf file. Sounds like its not setup right there if its asking to be downloaded instead of beinf run.
__________________
LipWeb.Net "Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Old 03-10-2004, 09:54 AM
Average Talker

Posts: 22
.conf file altered, everything works now. Thanks.
__________________
humour: afireinside.org / subvulture.com
music: entertainmentdeath.com
subvulture is offline
Reply With Quote
View Public Profile Visit subvulture's homepage!
 
Old 03-10-2004, 11:05 AM
Lippy's Avatar
LipWeb.Net

Posts: 270
a pleasure.
__________________
LipWeb.Net "Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Reply     « Reply to .htaccess & php incompatability
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12171 seconds with 12 queries