Search

Hello,
I have this kind of problem, I'm using head.js to load js files asynchronously, but I get errors because probably htaccess sees js calls as page calls.
How can I fix this?

Thanks!

I don't know how how HeadJS works, but to stop the rewrite rules from adding a trailing slash, get rid of the four lines that follow ### CHECK FOR TRAILING SLASH - Will ignore files.

The rule that adds a trailing slash to URLs is a pestilence and I would prefer to see it removed.

The rule that checks for trailing slashes will ignore files. If it adds a slash, there is no file.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details