|
|
||||||
|
||||||
| 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 |
|
|||
|
Hi, all...
I am attempting to add PHP to my index.html file. I first added the following lines to my htaccess file: AddType application/x-httpd-php htm html php AddHandler application/x-httpd-php .htm .html Instead of posting the page, it wants to save the page (dialogue box opens). I just tested IE and same issue is occuring. The above two lines are the only lines in my htaccess file. Am I missing something? I found posts elsewhere but no luck in correcting it. Thanks in advance... Getmea
__________________
Cheap Skateboard Decks, Trucks, Wheels, T-Shirts, and Hoodies | Home-Based Business Information | Premier Mentoring Business Scam Last edited by ctabuk; 11-23-2008 at 06:18 AM. Reason: update |
|
||||
|
The code I use to do this in htaccess is just
AddType application/x-httpd-php .htm .html The code you put above does not have a dot before the htm html etc, maybe that makes a difference? You have two lines there and it may be also that you only need to use one of those lines, depending on how your server runs php. For web servers using PHP as apache module: AddType application/x-httpd-php .html .htm For web servers running PHP as CGI: AddHandler application/x-httpd-php .html .htm
__________________
2009 Hairstyles - Pictures of 2009 hairstyles and a virtual hairstyler demo. Price Comparison Site - Compare prices of well known brands and products. |
|
|||
|
thanks...I'll give it a try.
Funny, the 2 lines of code was in one of my previous sites as per help from this forum 2 years ago |
|
|||
|
Thanks, chandrika:
For web servers using PHP as apache module: AddType application/x-httpd-php .html .htm *** did NOT work For web servers running PHP as CGI: AddHandler application/x-httpd-php .html .htm *** WORKED!!! Thanks, again... Getmea |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LinkCounter- SEO Firefox Addon for Firefox 3 | google junky | Webmaster Resources Discussion Forum | 1 | 11-28-2008 10:45 PM |
| .htaccess Help!! | garyglow | IT Discussion Forum | 8 | 01-16-2008 11:21 AM |
| 301 in htaccess | inertia | Search Engine Optimization Forum | 7 | 01-07-2008 03:49 PM |
| .htaccess | apwade | Web Programming Discussion Forum | 2 | 10-12-2007 06:05 AM |
| Googlebar For Firefox, Plus The Google & Firefox Deal | WPW_Feedbot | Search Engine Optimization Forum | 1 | 02-28-2005 04:38 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 |