Hi,
I am using Cake 1.1.19 with pretty urls and BASE_URL uncommented. All
works as expected when in a development structure however I am now
struggling to change to production.
My structure looks like
/
/website_files <- app, cake etc
/www <- new web root, determined by the 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, such as img
and css, include "/app/www" at the start of the url which then breaks.
The problem is already described https://trac.cakephp.org/ticket/1049
but with "cant reproduce" resolution. In my scenario the hosting
company (Crystone) is itself using mod_rewrite which is breaking
customer rewrite rules and might be a source of the problem. All
my .htaccess files are removed.
I can "fix" it by commenting out line 387 in dispatcher.php - I am not
sure what the dispatcher is doing with $htaccess or why it used.
$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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---