Jump to content

[SOLVED] Apache not using .htaccess


monkey_magix

Recommended Posts

Hi,

 

I've been trying to get ForceType to work by placing the following in my .htaccess file in the same directory as the "towns.php" file.

 

<Files towns>

ForceType application/x-httpd-php

</Files>

 

But I still get the 404 file not found when i try to access the http://www.mydomain.com/towns

 

Do i need to bounce apache?

 

I'm running - I got this information from my phpinfo()

Apache/2.2.0 (Fedora)

PHP Version 5.1.6

 

Many thanks in advance

 

 

Link to comment
Share on other sites

Take a look at:

http://wiki.kartbuilding.net/index.php/Apache#AllowOverride_in_Apache_Configs_for_.htaccess

 

In your apache2.conf or in /etc/apache2/sites-enabled/000-default, you will have something like:

 

<Directory /var/www/>

                Options Indexes FollowSymLinks MultiViews

                AllowOverride None

                Order allow,deny

                allow from all

        </Directory>

 

You need to change the "AllowOverride None" to either "AllowOverride All" or a more specific entry as outlined in the link above.

 

-steve

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.