Thursday, July 24, 2014

[Request] How to remove the name of the application folder in the url?

 [Doubt] Hello guys, I need to remove the name of the application server folder in the url. I only have ftp access to the system, so dont rise to the application of a folder above

The url is this way  "domain.com/name"
and I wanted her to be like this "domain.com/"

I tried to modify the. htaccess in root folder this way

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/politica
RewriteRule ^index\.php(.*)$ /politica/index.php$1 [L]
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [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: