I've got a site at www.domain.com and I want to be able to use relative URLs when creating internal links (e.g. stuff)
However when I do this, the link created points at domain.com/blah.jpg instead of www.domain.com/blah.jpg .... and for some strange reason, the link without the www always returns a 404 rather than sending me to the right place.
So I want my relative URLs to pick up the www.
How do I do that?
Now before you tell me to "set it in sites/default/settings.db" know that I already tried that...and it's still lopping off the www.'s
I could have done something wrong, of course. But is there another way? Is there something in my DB? Is there a setting somewhere in a file I can change?
Thanks! This is really annoying.
Comments
it probably from your apache
it's probably from your apache rewrite rules... type "www" into the d.o. search box and you'll find several useful links in the first page of results.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
You could just add this to
You could just add this to your .htaccess file (replace "domain" with your domain name)