I'm curious about this as well...any luck? On May 24, 7:33 pm, Chickenhen <[email protected]> wrote: > I have a site set up with the following structure > > -cake > -app > -www > ---webroot1 > ---webroot2 > --- ... > ---webrootn > > with the www folder exposed to the internet. > > I have a .htaccess in "www" which handles wildcard subdomaining: > > RewriteEngine On > RewriteBase / > RewriteCond %{ENV:REDIRECT_SUBDOMAIN} ="" > RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9][-a-z0-9]+)\.domain\.co\.uk > \.?(:80)?$ [NC] > RewriteCond %2 !^www|ftp|mail|pop3|localhost$ > RewriteCond %{DOCUMENT_ROOT}/%2 -d > RewriteRule ^(.*) %2/$1 [E=SUBDOMAIN:%2,L] > RewriteRule ^ - [E=SUBDOMAIN:%{ENV:REDIRECT_SUBDOMAIN}] > > which works fine, so I can go to "webroot1.domain.co.uk", and get > webroot1 index, and go to "webroot1.domain.co.uk/controller" and get > the controller index. > > however any url displayed using the html helper is of the form, > "webroot1.domain.co.uk/webroot1/controller/action". > > this webroot1 in the path is not required; and so shouldn't be shown; > however I seem unable to get rid of it. > > the .htaccess I am using in each webroot is as follows: > > RewriteEngine on > RewriteBase / > RewriteRule ^$ app/webroot/ [L] > RewriteRule (.*) app/webroot/$1 [L] > > I use the html helper in the following manor: > > html->link('text', array('controller' => 'cont_n', 'action' => > 'act_n')); > > Does anyone have any ideas as to how to remove this subdomain folder > from the url links? > > Cheers
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
