Wednesday, May 29, 2013

Re: php cms and rewriteRule and cakephp routes

You should put the piwik folder inside your webroot/ folder. CakePHP directly serves any files inside webroot without parsing them through it's internal router.

On Monday, 20 May 2013 05:22:07 UTC+2, Mehrdad Dadkhah wrote:
hi

I have this folders in the host root:

app
lib
plugins
vendors
piwik

piwik is a php cms (just php no framework)

but this address (mySite.com/piwik) don't go to /piwik folder and
wan't to use rewriteRule and cakephp routes for it
I try lot of htaccess codes to resolve it but it didn't work
somthing like:

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{REQUEST_URI} !^/piwik/
   RewriteRule    ^piwik -    [L]
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

and ....

how can resolve this problem?

thanks in advance

--
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: