Created
September 15, 2015 17:02
-
-
Save jneubauer/118ce465ebb95ef2a65b to your computer and use it in GitHub Desktop.
example of additional htaccess condition preventing broken image and file links from getting routed to Joomla CMS
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
## Begin - Joomla! core SEF Section. | |
# | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
# | |
# If the requested path and file is not /index.php and the request | |
# has not already been internally rewritten to the index.php script | |
RewriteCond %{REQUEST_URI} !^/index\.php | |
# and the requested path and file doesn't directly match a physical file | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# and the requested path and file doesn't directly match a physical folder | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# excluding 'asset' file paths | |
RewriteCond $1 !\.(gif|jpg|png|ico|css|js|swf|wav|mp3|less|cur) | |
# internally rewrite the request to the index.php script | |
RewriteRule .* index.php [L] | |
# | |
## End - Joomla! core SEF Section. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment