Remove script extension.
Fix URL paths.