Stolz/MarketTradeProcessor/master/public/.htaccess - Htaccess File

Stolz/MarketTradeProcessor/master/public/.htaccess

<IfModule mod_rewrite.c>
  <IfModule mod_negotiation.c>
    Options -MultiViews
  </IfModule>

  RewriteEngine On

  #### Remove www from host
  #RewriteCond %{HTTP_HOST} ^www.(.+)
  #RewriteCond %{HTTPS}s/%1 ^(on(s)|offs)/(.+)
  #RewriteRule ^ http%2://%3%{REQUEST_URI} [L,R=301]

  #### Force httpS on some pages
  #RewriteCond %{HTTPS} =off
  #RewriteRule ^(index.php/)?(login|logout|auth|api).*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

  # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
</IfModule>

#Note: The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed.
#Use this flag to indicate that the current rule should be applied immediately without considering further rules.

On Github License

Files

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

Comments

Apache