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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -