mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 04:37:51 +02:00
.htaccess SEO improvements
This commit is contained in:
@@ -19,8 +19,16 @@ Options -Indexes
|
|||||||
# Setting rewrite rules.
|
# Setting rewrite rules.
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine on
|
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%/
|
RewriteBase /%siteurlhere%/
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||||
|
|
||||||
|
# Update code bellow for SEO improvements
|
||||||
|
# Redirect 301 /home http://example.org/
|
||||||
</IfModule>
|
</IfModule>
|
Reference in New Issue
Block a user