Changed 303 to manual javascript (fixes Apache redirects)