regex - Url Rewrite to redirect any js to a common folder -


i'm using isapi_rewrite3

the following examples

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

have been physically moved

  • /include/js/*.js

how write redirect redirect request js file new single directory? want same css well.

here have far. feel getting pretty close, making overly complicated.

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

this correct rewriterule ([^/]*)\.(js|css)$ /include/$2/$1.$2 [nc].


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -