I am attempting to clean up my URLs just a hair and have a question for those that have more experience with tweaking how cake and my app are installed, and usage of .htaccess and routes.
I apologize in advance to the gods of cake if this question is not to your liking ;) But I appreciate any advise you can offer. I have researched this quite a bit and prototyped to my wit (yes singular wit) end. Currently in public_html, the root of my site is a subdir named 'ams', and inside it is the std cake distribution with my application installed in 'app' and cake in 'cake' within the 'ams' dir. In public_html is an index.html (or jscript or php) that redirects a request to www.mysite.com to www.mysite.com/ams, at which point the std .htaccess that came with cake rewrites the request and sends things along to 'app/webroot' and ultimately the home page via a route in my config. From that point on every link and request is of format www.mysite.com/ams/controller/action etc. What I would like to do is remove the 'ams' from all URLs and links completely, so that a request to www.mysite.com goes directly to the home page, and I would like the ams bit out of every link and URL. So far the only way I have gotten this to work is to move the app and cake subdirs within 'ams' up to public_html, and add the bit for rewriting requests from the .htaccess in the 'ams' subdir' into the .htaccess in public_html, and removing my redirection from index.html. While this works fine I was wondering whether I could use rewrite rules in combination with modifying the default paths in webroot/ index.php to get the same effect without actually doing away with the ams subdir and leaving the directory structure intact. My attempts to do away with the 'ams' in paths without moving the app subdir up to public_html have been fruitless. I have tried putting a rewrite rul to ship requests to public_html to ams/app/webroot, and while this has the desired effect my attempts to adjust ROOT and APP_DIR etc have not worked. What's the 'right' way to get this done? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
