I’m trying to write a rule that redirects a request to a different file/path. Here is a sample of the incoming URL: /js/library/sample.js, has to reroute to /private/package/library/js/sample.js.
I tried:
ReWriteCond ^/js/(A-Za-z_]+)$/(A-Za-z.]+)$ /private/package/$1/js/$2
I’m finding it difficult to write the rule correctly though.
Thanks.
PS. Any good htaccess/rejex tutorials, send them along.
Do this:
I found these Apache docs sufficient to learn.