0

I'm using isapi_rewrite3

The following are examples

  • /extfile/banner.js
  • /home/home/foo.js
  • /this/that/file.js

have all been physically moved to

  • /include/js/*.js

How do I write a redirect that will redirect any request to any js file to the new single directory? I want to do the same for css as well.

Here is what I have so far. I feel like I am getting pretty close, but I am probably making it overly complicated.

RewriteRule ([^/]*)\.(js|css)$ /include/$2/$1.$2 [NC]

1 Answer 1

0

This was correct RewriteRule ([^/]*)\.(js|css)$ /include/$2/$1.$2 [NC].

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.