Initial commit
This commit is contained in:
43
web/.htaccess
Normal file
43
web/.htaccess
Normal file
@@ -0,0 +1,43 @@
|
||||
Options +FollowSymlinks -Indexes
|
||||
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# SEO, remove the subdomain www in URL
|
||||
# Exemple : http://www.yourdomain.com/contact redirect 301 to http://yourdomain.com/contact
|
||||
# To activate uncomment the following two lines
|
||||
#RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
|
||||
#RewriteRule ^(.*) http://yourdomain.com/$1 [QSA,L,R=301]
|
||||
|
||||
# SEO, add the subdomain www in URL
|
||||
# Exemple : http://yourdomain.com/contact redirect 301 to http://www.yourdomain.com/contact
|
||||
# To activate uncomment the following two lines
|
||||
#RewriteCond %{HTTP_HOST} ^yourdomain.com$
|
||||
#RewriteRule ^(.*) http://www.yourdomain.com/$1 [QSA,L,R=301]
|
||||
|
||||
# SEO, to avoid duplicate content with index.php in url
|
||||
# Exemple : http://www.yourdomain.com/index.php/contact redirect 301 to http://www.yourdomain.com/contact
|
||||
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
|
||||
RewriteRule (.?)index\.php/(.*) /$1$2 [R=301,NE,L]
|
||||
|
||||
|
||||
# If thelia is installed in a subdirectory (e.g., thelia2)
|
||||
# define the RewriteBase below to get a proper URL rewriting
|
||||
# RewriteBase /thelia2
|
||||
|
||||
RewriteCond %{HTTP_HOST} !^www.apartmoment\.com$ [NC]
|
||||
RewriteRule ^(.*)$ http://www.apartmoment.com/$1 [L,R=301,QSA]
|
||||
|
||||
|
||||
RewriteCond %{HTTPS} !=on
|
||||
# This checks to make sure the connection is not already HTTPS
|
||||
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user