I set up a new server and host a few pages from the one server. The host wants me to use the ROOT directory to put all the files for the default website and yet to keep it neat in the directory I want to put the site in a folder. When I edit the .htacess file to forward the domain to: http://www.example.com/folder/ I cannot lose the "folder" from the url. I want the site to act as though in the folder is the root for that domain.
You would have to change the DocumentRoot for the VirtualHost domain in the main Apache configuration. (If this is using Apache, that's an assumption on my part. Other webserver software should have a similar DocumentRoot setting)
Ah ok, thanks for understanding my question it was a bit jumbled. Yes it's an Apache web server. I would prefer to just leave it as it is then rather than ask the host to change that as I've had a couple of issues but it's sorted now so prefer to just go with how it is for now, and put all the other sites in folders and just have to deal with the one in the root. Would it have a negative SEO implications if I just go put the website in the root directory and have other websites in folders? (these have their own domains and are DNS routed to the folders).
Actually, you might be able to do something like: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} !^/site/ [NC] RewriteRule ^ site%{REQUEST_URI} [L] </IfModule> Code (markup): Where site is the name of the directory under your public_html (or DocumentRoot folder) where you website resides. This seems to work when I test it, though I should warn you that mod_rewrite is not one of my areas of expertise.