Skip to content

Commit

Permalink
Strategy pattern in CModule
Browse files Browse the repository at this point in the history
  • Loading branch information
np25071984 committed Feb 12, 2017
1 parent 6d6b315 commit 649eb2a
Show file tree
Hide file tree
Showing 35 changed files with 1,211 additions and 1,254 deletions.
21 changes: 10 additions & 11 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ AddDefaultCharset UTF-8
RewriteEngine On
RewriteBase /

RewriteCond %{THE_REQUEST} page=search&vType=(\d+)&vManuf=(\d+)&vFedDistr=(\d+)
RewriteRule .* /search/%1/%2/%3/1? [L,R=301]
RewriteCond %{THE_REQUEST} page=unit&id=(\d+) [NC]
RewriteRule .* /unit/%1? [L,R=301]

RewriteCond %{THE_REQUEST} page=search&vType=(\d+)&vManuf=(\d+)&vFedDistr=(\d+)&offset=(\d+) [NC]
RewriteRule .* /search/%1/%2/%3/%4? [L,R=301]

RewriteCond %{THE_REQUEST} page=search&vType=(\d+)&vManuf=(\d+)&vFedDistr=(\d+) [NC]
RewriteRule .* /search/%1/%2/%3/1? [L,R=301]

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

# force ssl
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

RewriteCond %{THE_REQUEST} page=unit&id=(\d+)
RewriteRule .* /unit/%1? [L,R=301]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

RewriteRule ^unit\/(\d+)[/]?$ /?page=unit&id=$1
RewriteRule ^search\/(\d+)[/]?$ /?page=search&vType=$1
Expand All @@ -27,10 +30,6 @@ ErrorDocument 404 /404
RewriteEngine off
</FilesMatch>

# force ssl
#RewriteCond %{SERVER_PORT} ^80$
#RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

RewriteRule ^sitemap\.xml$ /?page=sitemap

<IfModule mod_deflate.c>
Expand Down
Loading

0 comments on commit 649eb2a

Please sign in to comment.