Stooney Posted September 28, 2008 Share Posted September 28, 2008 I started learning Zend framework today. I'm reading through some tutorials to see how all it works. I am having a problem with the .htaccess I'm told to make. It sits in the localhost/zf-tutorial/public folder which is where the bootstrap (index.php) file is. I am getting Error 500 from the .htaccess # Rewrite rules for Zend Framework RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php # Security: Don't allow browsing of directories Options -Indexes # PHP settings php_flag magic_quotes_gpc off php_flag register_globals off php_flag short_open_tag on Quote Link to comment https://forums.phpfreaks.com/topic/126180-solved-zend-htaccess/ Share on other sites More sharing options...
corbin Posted September 29, 2008 Share Posted September 29, 2008 Check your apache error log. Quote Link to comment https://forums.phpfreaks.com/topic/126180-solved-zend-htaccess/#findComment-652731 Share on other sites More sharing options...
Stooney Posted September 29, 2008 Author Share Posted September 29, 2008 Here's the error from the log, isn't RewriteEngine part of apache? I know it's spelled right, so it must not 'be there'. If I am missing a module, which one do I look for? [Mon Sep 29 12:51:20 2008] [alert] [client 127.0.0.1] C:/xampp/htdocs/zf-tutorial/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration I'm using Apache 2.2.9 Quote Link to comment https://forums.phpfreaks.com/topic/126180-solved-zend-htaccess/#findComment-653210 Share on other sites More sharing options...
corbin Posted September 29, 2008 Share Posted September 29, 2008 Is mod_rewrite enabled? Also, is it allowed in that directory? Quote Link to comment https://forums.phpfreaks.com/topic/126180-solved-zend-htaccess/#findComment-653385 Share on other sites More sharing options...
Stooney Posted September 29, 2008 Author Share Posted September 29, 2008 Had to enable it Ty corbin. No topic solved button here Quote Link to comment https://forums.phpfreaks.com/topic/126180-solved-zend-htaccess/#findComment-653435 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.