mod rewrite - mod_rewrite error -
using rewrite rule giving me 500. wrong syntax?
options +followsymlinks rewriteengine on rewritebase / rewriterule ^microsites/(.*)$ /microsites/index.php?uid=$1 [l]
what want silently write http://site.com/microsites/anythingatall http://site.com/microsites/index.php?uid=anythingatall
edit: following works , not throw error
rewriterule ^([0-9])$ /microsites/index.php?uid=$1 [l]
// end edit
thanks advice!
the mistake microsites/index.php
matched ^microsites/(.*)$
. exclude destination , should work:
rewritecond $1 !=index.php rewriterule ^microsites/(.*)$ /microsites/index.php?uid=$1 [l]
Comments
Post a Comment