|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
What is the address of the site ?
Jean-Luc |
|
||||
|
Using IE 6
A Great Portal, Great links to great web sites. ( Functions ) A Great Portal, Great links to great web sites. ( Asks if I want to download ) It's the same fpr my other sites. |
|
||||
|
Using IE6
A Great Portal, Great links to great web sites. ( Asks if I want to download it) http://www.agreatportal.com/index.html ( Functions OK ) |
|
|||
|
The header sent by your web server contains :
Code:
Content-Type: application/x-httpd-php Code:
Content-Type: text/html; charset=UTF-8 No idea why your web server generates this "Content-Type" though. Jean-Luc |
|
||||
|
Interestingly enough, on Firefox both versions try to download. I think this is happening because the server configuration was set up incorrectly. I think the configuration was modified to parse .html files as .php, but the content type is not getting changed correctly when the PHP parser processes the document.
Try adding the following: AddHandler x-httpd-php .html The reason is that there are two different ways Apache can process PHP files, depending on the way PHP is installed on the server, and the way the Apache server was compiled. It has to do with how Apache sends the call to the PHP processor. All you need to know is when AddType fails, use AddHandler. If this fails, on some servers you need to create a seperate line for each extension. So instead of the line you have above, you would use: AddType application/x-httpd-php .html AddType application/x-httpd-php .htm
__________________
The best way to learn anything, is to question everything. Last edited by wige; 10-08-2008 at 10:22 AM. |
|
||||
|
(I think this is something to do with it?)
.htaccess uses:- AddType application/x-httpd-php .html .htm .http.conf uses AddType application/x-httpd-php .php .php4 .php3 AddType application/x-httpd-php-source .phps I'm shure the site where working OK, until yesterday when I re-formated my harddrive and reinstalled everything from scratch, (I had a nasty virus). Still rebuilding and testing. |
|
||||
|
The .htaccess directive will add additional extensions to those specified in httpd.conf, and so there should not be a conflict. However, if a handler is not specified, it may not work depending on your installation. Try adding the AddHandler directive I put above. If it still does not work, try adding the directives to the httpd.conf temporarily to test if the problem is with the directive itself, or if the server is ignoring the .htaccess file itself - you may have to re-enable that directive for .htaccess files.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
I think I've fixed it, more testing needs to be done
.htaccess now uses AddType application/x-httpd-php .php .htm .html AddHandler application/x-httpd-php .html .php .htm AddType application/x-httpd-php5 .php .htm .html AddHandler application/x-httpd-php5 .html .php .htm httpd.conf contains nothing to do with php Thanks |
|
||||
|
Quote:
|
|
||||
|
Just a quick update, incase anyone else has a simular issue. The final .htaccess is now, (this appears to work). Thanks everyone :-
AddType application/x-httpd-php .php .htm .html # AddHandler application/x-httpd-php .html .php .htm AddType application/x-httpd-php5 .php .htm .html # Use PHP5 as default AddHandler application/x-httpd-php .html .php .htm |
|
|||
|
Hi, all...resurrecting an old thread, hoping for some help.
I changed my HTACCESS according to the last post but nothing doing. Unknowingly, I created a new post for my issue. Any suggestions? Regards, Getmea |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MSN has both .com and index.html | Zemfik | MSN Search Discussion Forum | 2 | 03-04-2008 09:36 PM |
| Index.html goes from a PR4 to a PR3 | nipplecharms1 | Google Discussion Forum | 4 | 05-17-2007 08:09 AM |
| MSN has both .com and index.html | Sabat | MSN Search Discussion Forum | 4 | 02-06-2007 09:36 AM |
| index.html vs index.asp | howabout | Search Engine Optimization Forum | 8 | 11-15-2004 10:46 PM |
| Changing from index.html to index.shtml | Bluesuit | Search Engine Optimization Forum | 5 | 09-02-2004 10:12 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |