The root directory (http://www.example.com
) has a catch all index.php
page in it, and an .htaccess
file. Within this root directoy I have a wordpress/
directory which contains (suprise surprise) a Wordpress installation.
My goal is that when the user types in http://www.example.com
they are instead taken to http://www.example.com/wordpress
Here is my rewrite rule:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/wordpress
RewriteRule ^/(.*)$ http://%{SERVER_NAME}/wordpress/$1 [L]
At the moment it appears to do nothing - it still loads index.php
within the root directory.
What should my rewrite rule be (I'm assuming the one I'm using is wrong)?