xProteuSx Posted October 17, 2011 Share Posted October 17, 2011 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 More sharing options...
xProteuSx Posted October 17, 2011 Author Share Posted October 17, 2011 BTW - I did enable the Apache rewrite_module ... still no-go. PHP code is showing up as text. Link to comment https://forums.phpfreaks.com/topic/249244-wamp-and-htaccess/#findComment-1279872 Share on other sites More sharing options...
xProteuSx Posted October 17, 2011 Author Share Posted October 17, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.