.htaccess - RewriteRule Pattern Problem after RewriteBase called -


i want js-files in folder scripts redirected php handels caching. .htaccess looks this:

options +followsymlinks rewriteengine on rewritebase /eval/widget/scripts rewriterule ^(.*)\.js$ func.php?src=$1 

the filename (without extension) should passed php-file, instead src parameter 'scripts/javascript_filename'. what's wrong this? seems rewritebase doesn't set correctly...

change rewrite rule to

rewriterule ^.*?/(.*)\.js$ func.php?src=$1 

you understanding of rewritebase incorrect.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -