EllisLab text mark
Advanced Search
     
URL base path/site path -  how to change base/root URL?
Posted: 19 March 2011 12:03 AM
Joined: 2010-12-29
7 posts

I have installed EE on a dev server with a fake domain that I have no intention of putting online.  Since it is not online, I need to access the CP this way:

http://65.33.44.55/$sitepreview/devsite.com/system/index.php?S=0&D=cp&C=homepage

The problem is that the CSS and images are being referenced at http://devsite.com.  What do I need to change so that the everything is referenced relative to http://65.33.44.55/$sitepreview/devsite.com.

Thanks for any help!

 
Posted: 21 March 2011 03:30 AM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2004-03-22
12308 posts

dzaun,

Are you referring to the control panel or the frontend?

If the control panel then just goto your General Configuration and update your Site and Theme URLs and paths

 Signature 

John Henry’s Website | Follow me on Twitter

 
Posted: 21 March 2011 12:16 PM   [ # 2 ]   [ Rating: 0 ]
Joined: 2010-12-29
7 posts

Thanks John.  I tried to access General Configuration in the Control Panel, but the page doesn’t load, I get an “object expected” error in IE.  Actually, all of the functions error out.  Does the General Configuration update the config.php file?  If so, what exactly should be changed?

 
Posted: 21 March 2011 01:24 PM   [ # 3 ]   [ Rating: 0 ]
Joined: 2010-12-29
7 posts

John,

This was resolved using the General Configuration function.  I was getting errors, but the prompts were still displayed at the bottom and I was able to update the Site and Theme URLs and after a refresh it looks and appears to act like it should again. 

I’m still curious where the Theme URL and path are stored because I don’t see them in my config.php.

Thanks for your help!

 
Posted: 22 March 2011 06:00 AM   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2004-03-22
12308 posts

dzaun,

They are stored in the sites preferences in the db but you can also override them in the config.php file if needs be

 Signature 

John Henry’s Website | Follow me on Twitter

 
Posted: 22 March 2011 02:12 PM   [ # 5 ]   [ Rating: 0 ]
Joined: 2010-12-29
7 posts

Excellent, thanks for the information!

 
Posted: 23 March 2011 08:05 AM   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2004-03-22
12308 posts

No problems. Feel free to start a new thread if you have any more questions

 Signature 

John Henry’s Website | Follow me on Twitter