UPDATE

I ended up fixing this with Javascript prepending it...not ideal...but it 
worked

On Monday, September 17, 2012 6:16:09 PM UTC-4, Devario Johnson wrote:
>
> hi, this may be simple and I came rather close, but I was wondering if 
> someone could point me in the right direction.
>
> I was looking over the routing docs and doing some other searches but 
> couldnt find exactly what I needed.
>
> here is the issue.
>
> I have a site that is hosted at a subdirectory that is being pushed 
> through a proxy that when ever the URLS are written from the HTML helper 
> they dont go where they are supposed to relative to the root of the 
> subdirectory.
>
> The site loads fine from the subdirectory (with no changes to htaccess in 
> root app or webroot) but what is happening is any html helper generated 
> links or redirects all do to the base of the site www.blahblah.com/  and 
> it completely ignores the subdirectory.
>
> I made a custom route that seemed to fix this behavior but in some 
> instances it would throw an error about cake trying to load a plugin.
>
> what is the PROPER way for me to append the subdirectory path for the html 
> links to work right?  
>
> that can be either the .htaccess way or via routes in the config.  
>
> Thanks!
>
> This is what I had that was kinda close to what I wanted (but no dice)
>
> Router::connect('/sub/directory/:controller/:action/*, array('controller' 
> => ':controller', 'action' => ':action')); (yes 2 subdirectories deep)
>
>

-- 
Like Us on FacekBook 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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to