Re: Mod rewrite skip

2009-11-10 Thread Walther
Not sure exactly what you are wanting to do, but CakePHP automatically
allows you to access files in webroot.

So if you have a app/webroot/manager and you visit domain.com/manager
you will automatically access whatever files are in app/webroot/
manager. This allows you to have 3rd party scripts (like forums, etc.)

On Nov 9, 9:19 am, kangur91 kangu...@gmail.com wrote:
 I've got problem. Is a possibility to skip folder in modrewrite? For
 example I have folder in /app/webroot/manager/ -- I want to skip
 rewrite on manager folder. PS: this folder is on manager.domain.com

--

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-...@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=.




Re: Mod rewrite skip

2009-11-10 Thread Martin Westin

Am I right when I say that you want
/app/webroot/manager/existing_file -- should be accessible
/app/webroot/manager/nonexistent_file -- should not be rewritten to a
missing controller page

It that is what you want, the lazy answer is that you don't have to
worry. When you are live... at debug 0... Cake will render a 404 page
for the missing file. It might just look a little different from the
default one Apache renders.

The less lazy answer was found on stackoverflow:

RewriteRule ^manager - [L,NC]

put that before the existing Cake rules and it should do the trick...
if app/webroot is in fact the web root. The thread contains a few
other variations if the above doesn't work.
http://stackoverflow.com/questions/163302/how-do-i-ignore-a-directory-in-modrewrite



On Nov 10, 9:47 am, Walther waltherl...@gmail.com wrote:
 Not sure exactly what you are wanting to do, but CakePHP automatically
 allows you to access files in webroot.

 So if you have a app/webroot/manager and you visit domain.com/manager
 you will automatically access whatever files are in app/webroot/
 manager. This allows you to have 3rd party scripts (like forums, etc.)

 On Nov 9, 9:19 am, kangur91 kangu...@gmail.com wrote:



  I've got problem. Is a possibility to skip folder in modrewrite? For
  example I have folder in /app/webroot/manager/ -- I want to skip
  rewrite on manager folder. PS: this folder is on manager.domain.com

--

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-...@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=.




Mod rewrite skip

2009-11-08 Thread kangur91

I've got problem. Is a possibility to skip folder in modrewrite? For
example I have folder in /app/webroot/manager/ -- I want to skip
rewrite on manager folder. PS: this folder is on manager.domain.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---