Jump to content

Recommended Posts

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 :wtf:

 

Any help would be great thanks guys, I'm a noob  :P

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.