diff --git a/Installation-on-a-Web-Server.md b/Installation-on-a-Web-Server.md index 0e1ec40..ff1f721 100644 --- a/Installation-on-a-Web-Server.md +++ b/Installation-on-a-Web-Server.md @@ -13,4 +13,41 @@ to 755(or 777) if your host doesn't set it implicitly. 2. In Softaculous there is a 'Portals/CMS' Category. Collapse the category and Monstra will be there. Click on it. 3. You will see an 'Install' TAB. Click it. 4. Fill in the various details and Submit. -5. That's it, you are done! \ No newline at end of file +5. That's it, you are done! + +#### Apache .htaccess for Monstra +` +# +# Monstra CMS :: php & apache settings +# + +# Set default charset utf-8 +AddDefaultCharset UTF-8 + +# Don't show directory listings for URLs which map to a directory. +Options -Indexes + +# PHP 5, Apache 1 and 2. + + php_flag magic_quotes_gpc off + php_flag magic_quotes_sybase off + php_flag register_globals off + + +# Setting rewrite rules. + + RewriteEngine on + + # Update code bellow for SEO improvements + # RewriteCond %{HTTP_HOST} ^www.example.org [NC] + # RewriteRule ^(.*)$ http://example.org/$1 [R=301,L] + + RewriteBase /%siteurlhere%/ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php [QSA,L] + + # Update code bellow for SEO improvements + # Redirect 301 /home http://example.org/ + +` \ No newline at end of file