Tech Note: Mysterious Bug Fixed?

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

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? 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

► 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.

Who can foretell the dire consequences?

TwitterFacebook
LGF Pages
Recent Pages

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
3 hours, 56 minutes ago
Views: 54 • Comments: 0
Tweets: 1 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
11 hours, 37 minutes ago
Views: 98 • Comments: 0
Tweets: 0 • Rating: 4

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
11 hours, 41 minutes ago
Views: 127 • Comments: 1
Tweets: 0 • Rating: 1

Eclectic Infidel
City College of San Francisco Budget Update
12 hours, 30 minutes ago
Views: 115 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
17 hours ago
Views: 225 • Comments: 6
Tweets: 0 • Rating: 5

Aigle
National Geographic Traveler Veers Off Track
1 day, 17 hours ago
Views: 447 • Comments: 7
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 18 hours ago
Views: 224 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 19 hours ago
Views: 296 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 19 hours ago
Views: 517 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 22 hours ago
Views: 271 • Comments: 2
Tweets: 0 • Rating: 5

 Frank says:

He was in a quandary...being devoured by the swirling cesspool of his own steaming desires...