| Author |
Message |
davepc
Beginner


Joined: Jul 04, 2005 Posts: 10
|
Posted: Tue Jul 19, 2005 9:01 am Post subject: www and no www bug |
|
|
Hey,
Thanks for this integration tool, its cool.
Not sure if you know about this bug, but have you noticed how images and style sheets dont get address proper when you try your address with or without the www.
I see the bug is on your example too:
http://www.nukedgallery.net/modules.php?name=gallery2
http://nukedgallery.net/modules.php?name=gallery2
its possible to get it to work without the www by changing settings in gallery2.cfg, but then it stops workin with the www.
but is there a workaround to get it to work for both?
Thanks
Dave |
|
| Back to top |
|
|
AdBot
|
| Post subject: www and no www bug |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Tue Jul 19, 2005 4:54 pm Post subject: Re: www and no www bug |
|
|
sharp eyes
i know why this is happening, now i just have to figure out how to solve it  _________________
 |
|
| Back to top |
|
|
davepc
Beginner


Joined: Jul 04, 2005 Posts: 10
|
Posted: Wed Jul 20, 2005 5:21 am Post subject: Re: www and no www bug |
|
|
my short term fix for this is to refresh everyone who goes to the site without the www onto the www site.
/includes/meta.php
just below
Code: ›
##################################################
# Include for Meta Tags generation #
##################################################
put in:
Code: ›
$adddress= $_SERVER['HTTP_HOST'];
if ($adddress == "my_domain.net") /* Note without the www. */
{
$url_re = "http://www.my_domain.net".$_SERVER['REQUEST_URI'];
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1; URL=".$url_re."\">\n";
}
Not a proper fix for your problem, but might help some people in the mean time. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Jul 20, 2005 4:10 pm Post subject: Re: www and no www bug |
|
|
nah, fixed it. it was a bug w/ the "embedURI". if you included the domain name, ie:
http://www.foo.com/modules.php?name=gallery2
in the embedURI directive, you got the bug you see. If, however, you just make it:
modules.php?name=gallery2
it works for both  _________________
 |
|
| Back to top |
|
|
davepc
Beginner


Joined: Jul 04, 2005 Posts: 10
|
Posted: Thu Jul 21, 2005 6:53 am Post subject: Re: www and no www bug |
|
|
ye, nice on.
works for me too.
Thanks
Dave |
|
| Back to top |
|
|
Crypton
Novice


Joined: Sep 28, 2004 Posts: 29
|
|
| Back to top |
|
|
|
|
|
|
|