Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Changing the Base URL


Reply


4 Posts   2131 Views

Avatar
sammahoney

Community Member, 14 Posts

7 June 2008 at 1:13am

Edited: 07/06/2008 1:14am

Hi All

I've just finished making a site for a client using SS. I've had to do a few work-arounds for problems I couldn't get answers for. The last thing I'm trying to do is to change the URL that shows when you hover on a link.

At the moment it says

http://host.qsoftdns.net/~username/about-us/

The actual domain name redirects to http://host.qsoftdns.net/~username/

But I'd like it to be masked. I tried adding this to the _config file

Director::setBaseURL("http://www.domainname.com/");

However, when I do this I can still view the site, but it's not able to get the .css file for some reason so all the styling is lost. Also the pictures on the pages don't show. But if I view the source of the pictures, copy the URL, then open it on it's own, I can see it.

For example, http://www.domainname.com/assets/Uploads/intropic.jpg shows up ok.

Why can't SS find the files anymore?

Avatar
sammahoney

Community Member, 14 Posts

14 June 2008 at 12:48am

Anyone? Surely this must've come up before no?

Avatar
spenniec

Community Member, 37 Posts

14 June 2008 at 5:54am

Edited: 14/06/2008 5:54am

Hi Sam,
To clarify, when you put http://www.domainname.com/ in a browser it successfully redirects (this is the web server not SS) to http://host.qsoftdns.net/~username/
Taking SS out of the equation if there is a index.html file in here it displays it, right?

Avatar
sammahoney

Community Member, 14 Posts

14 June 2008 at 10:44pm

Yeah, but the weird thing is it displays my SS site, I can see all the content, and the menu works, but it won't read the CSS file or display the images, so it's showing an unstyled version of my site...but if I do a direct path to an image or the CSS file in a separate window, using the new forwarded version of the address, I can view them no problem?!?