Forum Moderators: phranque
I want anything that is not a script or a file (e.g. www.mywebsite.com/example) to go to one master script.
I did this with..
RewriteEngine On
RewriteRule (\.) script.php
But when you go to www.mywebsite.com that is also being redirected. I don't want the default page that pulls up (www.mywebsite.com/index.php) to be redirected just because somebody types in www.mywebsite.com
Any help would be GREATLY appreciated.
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !^/script\.php
RewriteRule \. script.php [L]
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim