Tech Note: Mysterious Bug Fixed?

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

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.

May God bless you my brothers, but the password is wrong.

TwitterFacebook
LGF Pages
Recent Pages

Randall Gross
Trial opens 2 years after feds break up Christian militia
2 hours, 7 minutes ago
Views: 74 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Obama's budget headed to Congress
2 hours, 22 minutes ago
Views: 93 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Dreyfus and the Birth of Intellectual Protest
5 hours, 11 minutes ago
Views: 77 • Comments: 0
Tweets: 0 • Rating: 1

researchok
The Man Who Wouldn't Die: New York's Most Fantastic Murder
5 hours, 14 minutes ago
Views: 103 • Comments: 0
Tweets: 0 • Rating: 3

researchok
Mitt's Spin
5 hours, 16 minutes ago
Views: 72 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Strategy
5 hours, 17 minutes ago
Views: 60 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Gender Wage Gap Skewed by Survey Flaws - Miller-McCune
5 hours, 18 minutes ago
Views: 66 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Why Obama Would Be Glad if the Culture War Is a Major Election Issue
5 hours, 18 minutes ago
Views: 87 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Is This the End of Wall Street as They Knew It?
5 hours, 18 minutes ago
Views: 78 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Prop 8 May Be Same-Sex Couples' Least Worry - Miller-McCune
5 hours, 18 minutes ago
Views: 67 • Comments: 0
Tweets: 0 • Rating: 1

 Frank says:

They're serving burgers in the back!