Hi,

I am using Cake 1.1.19 without mod_rewrite disabled and BASE_URL
uncommented. All works as expected when in a development structure however I
am now struggling to change to production.

My structue looks like

/
/website_files <- app, cake
/www <- new web root, determined by hosting company

My webroot index includes the changes :

define('ROOT', dirname(dirname(__FILE__)) . DS . "website_files");
define('APP_DIR', 'app');

When viewing the site all automatically generated links include "/app/www"
to the start of the url which then breaks. The problem is already described
https://trac.cakephp.org/ticket/1049 but with "cant reproduce" resolution.

I can "fix" it by commenting out line 387 in dispatcher.php

$htaccess = preg_replace('/(?:'.APP_DIR.'\\/(.*)|index\\.php(.*))/i',
'',$webroot).APP_DIR.'/'.$webrootDirName.'/';

The question is what else this will break and if there is no workaround
without hacking the core - this must be a common problem ?

Thanks for any help,

Tom
-- 
View this message in context: 
http://www.nabble.com/Broken-base-url-tp15279850p15279850.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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