![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
htaccess Addhandler not working
Here's what happening and what i'm trying to do...
1. server is default set to php 5.3.4 2. www.site.com is running php4 (script requires it) Addhandler set in the htaccess 3. www.site.com/newscript/ needs php5 4. i put a .htaccess in the www.site.com/newscript/ folder with Addhandler for php5 but it doesn't work. what ends up happening is php is no longer processed and it's sending the files in the /newscript/ folder to the browsers as files to download. i.e. instead of index.php loading i get a download dialog box to save index.php file. What am I doing wrong here, is it not possible to run php4 & 5 on the same domain space? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,386
|
That's because Addhandler in www.site.com overrides the one located in www.site.com/newscript/
Try to do it like this (just for test): www.site.com/oldscript/ www.site.com/newscript/ no .htaccess in www.site.com/
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |