Skip to content

Commit

Permalink
#253 Дублирование всех страниц сайта через index.php?q= add in ht.access
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Sep 27, 2017
1 parent dab9e58 commit 6eedbf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ht.access
Expand Up @@ -35,6 +35,12 @@ RewriteRule .* - [F,L]
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

# 301 that removes index.php?q= from all urls
#RewriteCond %{THE_REQUEST} \s/+index\.php\?&q=([^\s&]+) [NC]
#RewriteRule ^ /%1? [R=301,L]
#RewriteCond %{THE_REQUEST} \s/+index\.php\?q=([^\s&]+) [NC]
#RewriteRule ^ /%1? [R=301,L]

# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(manager|assets|js|css|images|img)/.*$ - [L]
RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
Expand Down

0 comments on commit 6eedbf6

Please sign in to comment.