jigsawsoul Posted April 25, 2012 Share Posted April 25, 2012 I enabled php and apache which come preinstalled on os x lion and installed phpmyadmin last week to start learning some more on my new mac book pro. Although I am having some trouble with the first stage of the tutorial which I'm following. I'm trying to set my url to rewrite back to the index page. .htaccess file. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] When going to the index page I'm able to see the page fine, but when go to (e.g. 'http://localhost/~jigsawsoul/mvc/testingrewrite') which should rewrite to the index page. I get this error message. 403 Forbidden You don't have permission to access /index.php on this server. I'm pretty new to all this I just trying to follow an MVC tutorial here, - but stuck on the first stage Any help would be great thanks guys, I'm a noob Quote Link to comment https://forums.phpfreaks.com/topic/261571-mod-rewirte-you-dont-have-permission-to-access/ Share on other sites More sharing options...
requinix Posted April 25, 2012 Share Posted April 25, 2012 Apache has an error log and in it will be more information about that error. What does it say? Quote Link to comment https://forums.phpfreaks.com/topic/261571-mod-rewirte-you-dont-have-permission-to-access/#findComment-1340406 Share on other sites More sharing options...
jigsawsoul Posted April 25, 2012 Author Share Posted April 25, 2012 Apache has an error log and in it will be more information about that error. What does it say? Great. I don't think error logging is turned on. How would I go about this? Quote Link to comment https://forums.phpfreaks.com/topic/261571-mod-rewirte-you-dont-have-permission-to-access/#findComment-1340408 Share on other sites More sharing options...
requinix Posted April 25, 2012 Share Posted April 25, 2012 That would be unusual. There's a default log that should be receiving things even if there isn't a log dedicated to whatever. Have you found the logs/ directory? That's where it would be. Quote Link to comment https://forums.phpfreaks.com/topic/261571-mod-rewirte-you-dont-have-permission-to-access/#findComment-1340428 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.