Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
invoiceninja/public/.htaccess
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (22 sloc)
784 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect Trailing Slashes... | |
RewriteRule ^(.*)/$ /$1 [L,R=301] | |
# Handle Front Controller... | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
# http://stackoverflow.com/a/20865084/497368 | |
RewriteCond %{HTTP:Authorization} . | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
# In case of running InvoiceNinja in a Subdomain like invoiceninja.example.com, | |
# you have to enable the following line: | |
# RewriteBase / | |
</IfModule> | |
<IfModule mod_headers.c> | |
# Blocks Search Engine Indexing | |
Header set X-Robots-Tag "noindex, nofollow" | |
</IfModule> |