Friday, July 10, 2015

Hide folder in url

Hi people,

I use cakephp and I have a domain www.site.com.br/new and i will like the user see www.site.com.br .

I made in .htaccess, but don't is working. Can anybody help me, please?


my .htaccess code in /public_html/new/frontend/ where "frontend" is a cakephp folder in directory "new".


<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]


    #RewriteRule ^new/*? $2 [NC,L]
 RewriteRule    ^new/([A-Za-z0-9-]+)?$ $1 [NC,L]


</IfModule>  

--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: