.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
Post a Comment