Hello, I was using cake php with mod_rewrite and everything was fine.
Unfortunately, my client's host does not have mod_rewrite enabled, so I
configured cake's pretty urls uncommenting

define ('BASE_URL', env('SCRIPT_NAME'));

then the problems started, first my links were all wrong, I tried to
find some cake cache, but had no luck. I moved the application
directory to another name then they were fine, now my css and js files
have weird urls, like
<link rel="stylesheet" type="text/css"
href="/cr/app/cr/css/copyrightedsongs.css" />
(added with $html->css())
or <script type="text/javascript" src="/cr/app/cr/js/prototype.js"> for
javascript
the webroot I'm running on is http://localhost/cr

I had to move my webroot to /, because I won't be able to configure the
DocumentRoot on the server. The variables I changed were

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

on index.php (from webroot) and they were working fine with mod_rewrite

any tips ?

thanks a lot

gui


--~--~---------~--~----~------------~-------~--~----~
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