I am accessing the site through a redirected domain (dev.mydomain.com) which is redirected in the hosts file so that a DNS lookup does not occur. I did the same on my laptop. That domain is redirected to the IP of my desktop (where the server is). I have MOD_REWRITE disabled since it is not available on the production server where I upload finished projects. I deleted the .htaccess file from the webroot directory and modified the core.php file to prevent it from using rewrite.
On Oct 6, 1:26 pm, brian <bally.z...@gmail.com> wrote: > On Tue, Oct 6, 2009 at 12:57 PM,Jimbo2150<jimbo2...@gmail.com> wrote: > > > I set up my laptop so that I can access or edit files and view it on > > the browser through my LAN (Apache is on my desktop computer). When I > > loaded the pages in the browser on the laptop, I notice that CSS and > > Images are linked incorrectly. It writes 2 root paths. Eg. Where ever > > there was an $html->css() or $html->image() call it should have > > output: > > > /rootPath/webroot/css/.. > > and > > /rootPath/webroot/img/... > > > Instead, I get: > > > /rootPath/rootPath/webroot/css/... > > and > > /rootPath/rootPath/webroot/img/... > > > What is going on? > > It actually should be "/img/..." & "/css/...". Do you have mod_rewrite > loaded and set up correctly? On the desktop, how are you accessing the > site? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---