Jump to content

Recommended Posts

Hi I'm writing this down after failing to find an .htaccess in the root (www) folder -i think ideleted it by mistake or it wasn't there anyways- but still there are three other .htaccess files , one under: wamp/apps/phpmyadmin***/setup/lib  anothet under: wamp/apps/phpmyadmin***/libraries and the last under: wamp/apps/phpmyadmin***/contrib

 

which one of these do I use to apply changes so i can use php scripts within .htm and .html files?!! :'(  thanks in advance

You can start with an empty file, there isn't likely to be any configurations within the existing files that you will want.

 

.htaccess files reside over the directory they are place in and all child directories unless they again contain another directory, so yes, if you need the rules to apply to www and below, that is indeed where it belongs.

thanks for the help...i made a new file , placed it in the root, and i can happily use php script within my htm files....for those interested about what to add to the .htaccess file to make this work, just add one of these linse or both:

 

AddType application/x-httpd-php .htm #allows use of php script within .htm file

AddType application/x-httpd-php .html #allows use of php script within .html file

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.