I am in a cPanel environment where I can't access the httpd.conf file to change the documentRoot, and am trying to use mod rewrite to accomplish the same thing in the .htaccess file.
I am using a cms and want to use the static version of the site as a backup that I can switch to easily in case of cms failure.
I would keep the static site in a directory
www.mydomain.com/static
but would want the urls to not show the "/static" part to the user.
it would just display as www.mydomain.com/filename.htm instead of www.mydomain.com/static/filename.htm
I have a redirect working as
RewriteEngine on
RewriteRule ^/$ /static/ [R]
but this displays "/static" in the url which I wish to avoid.
I have been searching the documentation, but find the syntax for redirect rules to be confusing.