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

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -