OpenTechCollaborative/online-distribution/master/source/dist.htaccess - Htaccess File

OpenTechCollaborative/online-distribution/master/source/dist.htaccess

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On

    ### Enable/Disable Maintenance Mode
  #RewriteBase /
  #RewriteCond %{REQUEST_URI} !/maintenance.php$
  #RewriteCond %{REMOTE_HOST} !^108.162.145.139
  #RewriteRule ^(.*)$ /view/common/maintenance.php [R=307,L]

  ### Force HTTPS
  #RewriteCond %{HTTPS} !=on
  #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    ### for seo enabled
    RewriteBase /
    RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
    RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

    ### Rewrite index.php
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s/+index.php?route=common/home[?s] [NC]
    RewriteRule ^ /? [R=301,L]

    ### Custom 404 Not Found page
    ErrorDocument 404 /view/common/not_found.php
</IfModule>

### Display PHP Errors
php_value display_errors 1

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REMOTE_HOST, REQUEST_FILENAME, REQUEST_URI, THE_REQUEST

Comments

Apache