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

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -