Im working on a site thats using CakePHP which requires the use of mod_rewrite rules, the only trick with it this time is that they want the current site to still be active to the public until such time they ddem the site ready to go.
There is an index.html site that does a meta refresh to the URL /version02/index.html
Is there a way I can set a RewriteCond that should do a redirect unless the requested URL is the one above so that the public can still visit the root index.html and have the meta refresh work?
The .htaccess file im trying is below.... For some reason, when I go to the main site it gets parsed out by Cake even though index.html is present...
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !/version02/index.html
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !/version02/index.html
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
There is an index.html site that does a meta refresh to the URL /version02/index.html
Is there a way I can set a RewriteCond that should do a redirect unless the requested URL is the one above so that the public can still visit the root index.html and have the meta refresh work?
The .htaccess file im trying is below.... For some reason, when I go to the main site it gets parsed out by Cake even though index.html is present...
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !/version02/index.html
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !/version02/index.html
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>