Re: Don't rewrite an existing directory
edit the .htaccess fiel within root and include the following from IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule to IfModule mod_rewrite.c RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/projects/(.*)$ RewriteRule ^.*$ - [L] /IfModule IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: Don't rewrite an existing directory
Thank you so much!!! On Mar 21, 4:31 pm, mattmemo knockdownsh...@gmail.com wrote: Hello, So here's my problem: I have a CakePHP installation in my server root (/www). What I would like is for CakePHP to NOT rewrite URL's for directories/files that exist. For example, I am making a project manager with my main CakePHP installation. In my server root, I have the following: app/ cake/ projects/ (not a Cake folder) vendors/ .htaccess index.php I would like to be able to navigate to the projects folder, where I have other project folders (some are installations of CakePHP, some are just plain HTML sites). To be more specific, I'd like to be able to go tohttp://localhost/and see my CakePHP project manager. When I got tohttp://localhost/projects/project1(or project2, etc.), I would like to see that particular project. Instead, my CakePHP project manager is rewritinghttp://localhost/projects/project1and I get the Projects Controller not found error. Perhaps I made my explanation overly complicated, but I wanted to make sure that my problem is understood correctly. Is this possible? Any help is greatly appreciated. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Don't rewrite an existing directory
Hello, So here's my problem: I have a CakePHP installation in my server root (/www). What I would like is for CakePHP to NOT rewrite URL's for directories/files that exist. For example, I am making a project manager with my main CakePHP installation. In my server root, I have the following: app/ cake/ projects/ (not a Cake folder) vendors/ .htaccess index.php I would like to be able to navigate to the projects folder, where I have other project folders (some are installations of CakePHP, some are just plain HTML sites). To be more specific, I'd like to be able to go to http://localhost/ and see my CakePHP project manager. When I got to http://localhost/projects/project1 (or project2, etc.), I would like to see that particular project. Instead, my CakePHP project manager is rewriting http://localhost/projects/project1 and I get the Projects Controller not found error. Perhaps I made my explanation overly complicated, but I wanted to make sure that my problem is understood correctly. Is this possible? Any help is greatly appreciated. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.