RewriteRule ^/docs/(.*)^ /path/to/docs/$1 [L]
* BEFORE other rules...
Em quinta-feira, 16 de maio de 2013 17h16min20s UTC-3, glk escreveu:
-- Em quinta-feira, 16 de maio de 2013 17h16min20s UTC-3, glk escreveu:
Andre,
Thank you for a great explanation... I'm using xampp and have my VirtualHost DocumentRoot pointed at my /app/webroot, so essentially I have Cake in private folders and my webroot is my public_html.
This works great for my testing, and I just "assumed" that the folders such as /app/Model , /app/View were all private since this arrangement keeps my browser from "seeing" any of the "private" stuff. I thought this would seem to be a security precaution to keep outsiders from accessing anything "outside of webroot" without going through the Rewrite and Routing of Apache and/or CakePHP.
So what I wanted to try to do is put the /docs into the /app/docs (private) and access it via www.site.com/docs. I'll give the htaccess a try. Of course, maybe I'm just making it harder than it needs to be. I just kind of liked have a webroot with virtually nothing in it except /css, /img, /js, .htaccess, /index.php!!
Thanks again for your great explanation!
Greg
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment