url rewriting - rewrite rule to send any url to index.htm? -


i positively suck @ understanding rewrite rules. did on bunch of docs keep getting 404 error.

i figured

rewriterule ^/(.*)$ index.htm 

will send url index.htm, 404 error when try example www.hi.com/blah.

try following,

rewriteengine on rewritecond %{request_uri} !^/index.htm$ rewriterule ^(.*)$ /index.htm [r] 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -