I don't usually work with LAMP and am a bit stumped getting a site working locally.
The site is set up to be used via localhost:
However, the way the site files are physically on the server the root is located as such:
I'm trying to figure out a way where I could type #1 but have apache actually looking for the files in #2 so that all of the asset/page links in the web application work.
Is mod_rewrite the solution?
If so, I'm stumped on the syntax. I have this but it won't work (due, I assume, to it causing an infinite loop)
RewriteRule ^mysite/ mysite/trunk/site
I have a hunch I need to sprinkle on some regex?
Per badman's suggestion, I now placed this in my htaccess file:
Alias /mysite /mysite/trunk/site
I've also tried this:
Alias /mysite /var/www/mysite/trunk/site
I end up in my server logs with this error:
[alert] [client 127.0.0.1] /var/www/.htaccess: Alias not allowed here
So, clearly I'm putting this in the wrong spot. You'd think this would be something I could easily google, but oddly I can't find an example that shows me WHERE that line should live on the server.