: The best would be just point domain into that folder in your Control Panel. If it is necessary to be done with .htaccess and mod_rewrite, then here are the rules: Options +FollowSymLinks -MultiViews
The best would be just point domain into that folder in your Control Panel.
If it is necessary to be done with .htaccess and mod_rewrite, then here are the rules:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/folder/
RewriteCond %{DOCUMENT_ROOT}/folder%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}/folder%{REQUEST_URI} -d
RewriteRule (.*) /folder/ [L]
For the above to work you need to:
place this into .htaccess file in website root folder;
have mod_rewrite enabled on your server;
.htaccess is enabled in server config and allowed to contain rewrite rule directives (AllowOverride All or similar).
Consult your hosting company with the last 2 points.
More posts by @Cody1181609
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.