Sunday, 10 July 2011

PHP mod_rewrites


i'm having bit of fun :eek: rewrites on os x lion , can't head around it.

i'm creating mvc app in subfolder of development site (under default sites folder in home folder) , rewrite changing this:

php:
http://localhost/~dunmail/dunmail/app/test
to
php:
http://localhost/users/dunmail/sites/dunmail/test/
when should be

php:
http://localhost/users/dunmail/sites/dunmail/index/test
if type latter in address bar correct file appears app side appear working far concerned.

.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 , dunmail.conf set allowoverride hasn't improved things.

have clues need modify - i'm going round in circles here!
 

did restart apache? think need disable re-enable "web sharing" .htaccess changes take effect.
 


Forums Special Interests Web Design and Development


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment