mod_rewrite for dynamic content

hi,

I want to configure Apache so that a request to any URL in the domain is served by a single PHP script file.

In my naivety I had thought that placing the following lines in .htaccess might achieve this.

RewriteEngine On
RewriteRule /(.*) /index.php
Any thoughts on whether this is sound or have I got hold of the wrong end of the stick entirely???

wombat

 

 

 

 

Top