I'm having a bit of fun
with rewrites on OS X Lion and I can't get my head around it.
Basically I'm creating an MVC app in a subfolder of my development site (under the default Sites folder in my home folder) and the rewrite is changing this:
to
When it should be
If I actually type the latter in to the address bar then the correct file appears so the app side would appear to be working as far as this is concerned.
The .htaccess is:
I've changed httpd.conf and dunmail.conf to set AllowOverride All but that hasn't improved things.
Does anyone have any clues as to what I need to modify - I'm going round in circles here!
Basically I'm creating an MVC app in a subfolder of my development site (under the default Sites folder in my home folder) and the rewrite is changing this:
PHP:
http://localhost/~dunmail/dunmail/app/test
to
PHP:
http://localhost/Users/dunmail/Sites/dunmail/test/
When it should be
PHP:
http://localhost/Users/dunmail/Sites/dunmail/index/test
If I actually type the latter in to the address bar then the correct file appears so the app side would appear to be working as far as this is concerned.
The .htaccess is:
Code:
Options +FollowSymLinks
rewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index/$1 [L,QSA]
I've changed httpd.conf and dunmail.conf to set AllowOverride All but that hasn't improved things.
Does anyone have any clues as to what I need to modify - I'm going round in circles here!