monkey_magix Posted March 10, 2007 Share Posted March 10, 2007 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 More sharing options...
steviewdr Posted March 10, 2007 Share Posted March 10, 2007 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 https://forums.phpfreaks.com/topic/42094-solved-apache-not-using-htaccess/#findComment-204209 Share on other sites More sharing options...
monkey_magix Posted March 14, 2007 Author Share Posted March 14, 2007 Thanks ! that totally sorted it Link to comment https://forums.phpfreaks.com/topic/42094-solved-apache-not-using-htaccess/#findComment-207174 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.