Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 22
Trades: 0
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:
Please login or register to view this content. Registration is FREE
/
Please login or register to view this content. Registration is FREE

music:
Please login or register to view this content. Registration is FREE
subvulture is offline
Reply With Quote
View Public Profile Visit subvulture's homepage!
 
 
Register now for full access!
Old 03-07-2004, 10:16 PM
Average Talker

Posts: 22
Trades: 0
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:
Please login or register to view this content. Registration is FREE
/
Please login or register to view this content. Registration is FREE

music:
Please login or register to view this content. Registration is FREE
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
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
"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
Trades: 0
.conf file altered, everything works now. Thanks.
__________________
humour:
Please login or register to view this content. Registration is FREE
/
Please login or register to view this content. Registration is FREE

music:
Please login or register to view this content. Registration is FREE
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
Trades: 0
a pleasure.
__________________

Please login or register to view this content. Registration is FREE
"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 Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.40943 seconds with 12 queries