Clean URL's on OS X
I do my development on a Mac and have been struggling to get mod_rewrite and htaccess working to support clean URLs. This blog entry is referenced a bit around the net -
http://www.clagnut.com/blog/350/ but it did not work for me. I ended up getting the solution from Glen.
I moved my dev folder outside of the defaults for OS X/Apache and created an alias in the your_user_name.conf file (see above link for details on location of conf files).
The code snippet in the attached file will allow you to access your site locally with http://localhost/siteframe or http://computername.local/siteframe
Again, this is Glen's solution; I am just passing it on to help others avoid the same frustrations I went through.
Enjoy.
File Attachments
| Download | Info | Size (bytes) | Downloaded | Created |
|---|---|---|---|---|
| userconf.rtf | More Info | 685 | 70 | July 11, 2006 22:32 |
For various Geeky reasons I move my User folder location to a different physical drive. I only do this on my desktop as I have two drives and I like to keep the OS X volume separate from the User folder. Probably overkill since I do have a pretty good back-up routine, but anyway that's how I roll. My laptop is not set up this way and the above technique works like a champ. However, when I went to create an alias for a recent test site on my desktop I ran into problems. It seems Apache does not like the fact that I moved my User folder location and will not allow me to reference the path as above. I actually needed to use the full path to the folder. Once I got the path issue resolved I saw a huge performance hit in resolving the aliased folder. So, I moved my aliased folder out of the User folder parent and onto the same physical drive as Apache. And now everything works fine. Just thought I would throw this info out there. This situation would probably not occur for 99.9% out there but ya never know.