Friday, July 25, 2014

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

why not getting a proper vserver or somthing with ssl + vhost access?
That also only costs 1$ per month and gets the job done.
Every dev should at least have that much money ;)

PS: There just use http://www.dereuromark.de/tag/virtual-host/ as setup (a few minutes) and everything runs out of the box

mark


Am Donnerstag, 24. Juli 2014 17:11:01 UTC+2 schrieb Bruno Messias:
 [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: