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
https://forums.phpfreaks.com/topic/42094-solved-apache-not-using-htaccess/
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

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.