Mobile app version of vmapp.org
Login or Join
Cody1181609

: 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

@Cody1181609

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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Cody1181609

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme