You should add RewriteBase /site2 directive into your
webroot .htaccess for site2.

On Mar 26, 11:18 pm, Jeroen <[email protected]> wrote:
> My Windows-PC has one http-dir called C:/xampp/htdocs/site1 and I
> configured Apache to map site2 to the same location (C:/xampp/htdocs/
> site1).
> At the moment I configured apache as follows:
> AliasMatch ^/site2(.*) C:/xampp/htdocs/site$1
>
> When I go tohttp://localhost/site2/<controller>/<action> Apache maps
> it to site1 and the URL in the browser the URL is 
> stillhttp://localhost/site2/<controller>/<action>. So far, so good.
> The problem is on every page the links generated are as 
> follows:http://localhost/site1/<controller>/<action> and I want links 
> likehttp://localhost/site2/<controller>/<action>.
>
> Is it possible to let Apache generate 
> linkshttp://localhost/site2/<controller>/<action>
> on every page? If so, how?
> If Apache can't generate links 
> likehttp://localhost/site2/<controller>/<action>,
> how can I let Cake generate links 
> likehttp://localhost/site2/<controller>/<action>
> when I'm 'incoming' from site2 instead of site1?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to