Re: php cms and rewriteRule and cakephp routes

2013-05-30 Thread Dakota
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+unsubscr...@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.




Re: php cms and rewriteRule and cakephp routes

2013-05-30 Thread iFemke
We use our own CMS with CakePHP websites (we're currently translating our 
own cms into a new cakephp cms.). We use the same structure as you, (app, 
lib, plugins, vendors, cms) and we don't do anything with the .htaccess 
files inside the cakephp part (we also use routes, but don't create a /cms 
route especially). We do have this inside our cms map in the .htaccess:
RewriteEngine On
RewriteBase /

RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/$ 
cms/?module=$1page=$2pagenumber=$3get4=$4get5=$5 [L]
RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ cms/?module=$1page=$2pagenumber=$3get4=$4 
[L]
RewriteRule ^(.*)/(.*)/(.*)/$ cms/?module=$1page=$2pagenumber=$3 [L]
RewriteRule ^(.*)/(.*)/$ cms/?module=$1page=$2 [L]
RewriteRule ^(.*)/$ cms/?module=$1 [L]

We can access our cms at websitename.com/cms. I hope something like this 
will also work for you!

-- 
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+unsubscr...@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.




Re: php cms and rewriteRule and cakephp routes

2013-05-29 Thread Mehrdad Dadkhah
thanks
I use it

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

and it's work 

-- 
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+unsubscr...@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.




Re: php cms and rewriteRule and cakephp routes

2013-05-20 Thread André Luis
Just put another .htaccess witch has it´s own rewriteRules inside piwik 
folder, OR, put this piwik folder inside /app/webroot folder

Em segunda-feira, 20 de maio de 2013 00h22min07s UTC-3, Mehrdad Dadkhah 
escreveu:

 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+unsubscr...@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.