Tech Note: Mysterious Bug Fixed?

Charles Johnsonfollow me on twitter
Science • Mon Sep 29, 2008 at 10:27 am PDT • Views: 172

If you’ve been having any of the following problems at LGF:

* Login from the main page doesn’t work, but clicking through to an article page and logging in does.

* The “top rated links” area just spins and spins and doesn’t open, until you click through to another LGF page.

* The RSS feeds won’t display.

* Other seemingly Javascript/Ajax-related issues.

… we’ve finally managed to duplicate the symptoms, diagnose the problem, and eradicate the bug.

The cause: accessing our front page with a URL including the “www.” prefix. Yes, really, that’s all it was. Most browsers will see “www.littlegreenfootballs.com” as a different domain than “littlegreenfootballs.com,” and Javascript’s same-domain security features kick in, refusing to allow access to scripts with URLs that don’t include the “www.”

The solution was found on this page; a method of forcing all page requests to remove the “www.” prefix, by using mod_rewrite.

This should eliminate a constant source of annoyance for visitors, and a constant source of problem complaints for Stinky Beaumont.

Advertisement

107 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Any discrepancy in the data is irrelevant.

TwitterFacebook
LGF Pages
Recent Pages

researchok
Newt: For the Record
6 minutes ago
Views: 14 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Vive La France! 67 Years Later An American Infantryman Is Awarded The Legion d'Honneur
11 minutes ago
Views: 25 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Newt Gingrich: The Most Disliked Politician in America
11 minutes ago
Views: 29 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Elie Wiesel Calls on Mitt Romney to Make Mormon Church Stop Proxy Baptisms of Jews
12 minutes ago
Views: 27 • Comments: 0
Tweets: 0 • Rating: 0

Turnabout is Fair Play
Why a Saudi Blogger Faces a Possible Death Sentence for Three Tweets
29 minutes ago
Views: 22 • Comments: 0
Tweets: 0 • Rating: 1

Channeling Confucius
The GOP's readiness to cut a payroll tax deal reveals a political party in retreat
29 minutes ago
Views: 22 • Comments: 0
Tweets: 0 • Rating: 0

_RememberTonyC
The Jeremy Lin Phenomenon
1 hour, 2 minutes ago
Views: 40 • Comments: 0
Tweets: 0 • Rating: 1

Daniel Ballard
Mayor Antonio Villaraigosa Screws Over L.A. With $100 Million Credit Bubble That Could Burst Once He Leaves Office - Los Angeles
2 hours, 3 minutes ago
Views: 83 • Comments: 0
Tweets: 0 • Rating: 1

Daniel Ballard
The All-About-Me Mayor: Antonio Villaraigosa's Frenetic Self-Promotion - Page 1 - News - Los Angeles
2 hours, 5 minutes ago
Views: 67 • Comments: 1
Tweets: 0 • Rating: 1

Aigle
Jodi Rudoren Enters the Scene: Tweets or Tea Leaves?
2 hours, 9 minutes ago
Views: 38 • Comments: 0
Tweets: 0 • Rating: 0

 Frank says:

Ugly as I mights be, I am your futum!