Jump to content

WAMP and .htaccess


xProteuSx

Recommended Posts

I've recently installed WAMP.  I used to work with XAMPP way back in the day, but I can't figure out something with WAMP.  I've got a PHP based website but the file extensions are .html.  So I need to set WAMP up so that .html files are parsed for PHP.  Online I have a .htaccess file, and the site works online.  However, WAMP doesn't seem to recognize the .htaccess file.  How do I get WAMP to recognize and implement the .htaccess file settings?

Link to comment
https://forums.phpfreaks.com/topic/249244-wamp-and-htaccess/
Share on other sites

FYI -- the .htaccess file is being read now. I figured out that you have to use:

 

AddType application/x-httpd-php .html

 

Instead of:

 

AddHandler application/x-httpd-php5 .html

 

But now, when the .html page with the PHP code loads, I get a windows popup that want's me to either "Open the File With ..." or "Save File".  If I choose to open the file using my browser, the file just gets saved to my downloads directory.

 

HELP!

Link to comment
https://forums.phpfreaks.com/topic/249244-wamp-and-htaccess/#findComment-1279874
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.