Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2008, 04:12 PM
WebProWorld Pro
 

Join Date: Aug 2006
Location: Cary, Illinois
Posts: 218
getmea RepRank 1
Default Firefox does not like my HTACCESS

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

Last edited by ctabuk : 11-23-2008 at 07:18 AM. Reason: update
Reply With Quote
  #2 (permalink)  
Old 11-23-2008, 06:42 AM
chandrika's Avatar
WebProWorld Veteran
 

Join Date: Oct 2005
Location: Cambridge, UK
Posts: 485
chandrika RepRank 1
Default Re: Firefox doe snot like my HTACCESS

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.
Reply With Quote
  #3 (permalink)  
Old 11-23-2008, 02:56 PM
WebProWorld Pro
 

Join Date: Aug 2006
Location: Cary, Illinois
Posts: 218
getmea RepRank 1
Default Re: Firefox doe snot like my HTACCESS

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
Reply With Quote
  #4 (permalink)  
Old 11-23-2008, 03:01 PM
WebProWorld Pro
 

Join Date: Aug 2006
Location: Cary, Illinois
Posts: 218
getmea RepRank 1
Default Re: Firefox doe snot like my HTACCESS

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
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Tags:



Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

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 11:45 PM
.htaccess Help!! garyglow IT Discussion Forum 8 01-16-2008 12:21 PM
301 in htaccess inertia Search Engine Optimization Forum 7 01-07-2008 04:49 PM
.htaccess apwade Web Programming Discussion Forum 2 10-12-2007 07:05 AM
Googlebar For Firefox, Plus The Google & Firefox Deal WPW_Feedbot Search Engine Optimization Forum 1 02-28-2005 05:38 PM


Search Engine Optimization by vBSEO 3.2.0