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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
monkey_magix Posted March 14, 2007 Author Share Posted March 14, 2007 Thanks ! that totally sorted it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.