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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.