Monday, May 20, 2013

Re: php cms and rewriteRule and cakephp routes

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