OpeSEF, component Joomla seo
Optimization for search engines
Before any changes RECOMMEND file a BACK-UP htaccess.txt to avoid malfunctions.
RewriteCond% {REQUEST_FILENAME} !-F
RewriteCond% {REQUEST_FILENAME} !-D
Index.php RewriteRule ^(.*)
# RewriteBase / Joomla
# #
# @ Version $ Id: htaccess.txt 1570 12.29.2005 05:53:33 Z $ eddieajau
# @ Package Joomla
# @ Copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @ License http://www.gnu.org/copyleft/gpl.html GNU / GPL
# Joomla! is Free Software
# #
#
# Mod_rewrite in use
#
RewriteEngine On
# #
# # NOTE!
# # When using multiple Joomla sites or other web applications in sub-folders,
# # Explicitly you must turn the RewriteEngine off or use the settings
# # Recommended for the application
# #
Following # Uncomment line if your webserver’s URL
# Is Not Directly related to physical file paths.
Update # YourJoomlaDirectory (just / for root)
# RewriteBase /
#
# Rules
#
RewriteCond% {REQUEST_FILENAME} ! . (Jpg | jpeg | gif | png | css | js | pl | txt) $
RewriteCond% {REQUEST_FILENAME} !-F
RewriteCond% {REQUEST_FILENAME} !-D
Index.php RewriteRule ^(.*)
# RewriteBase /
########## Begin – Rewrite rules to block out Some common exploits
# # If you experience problems on your site block out the operations listed below
# # This Attempts to block the Most common type of exploit “ Attempts to Joomla!
#
Any script # Block out mosConfig Trying to set to value through the URL
RewriteCond% {QUERY_STRING} mosConfig_ [a-zA-Z_] {1.21} (= | % 3D) [OR]
Any script # Block out Trying to base64_encode crap to send via URL
RewriteCond% {QUERY_STRING} base64_encode .* (.* ) [OR]
# Block out Any That includes a script tag in URL <script>
RewriteCond% {QUERY_STRING} ( <|% 3C) .* script .* (> |% 3E) [NC, OR]
Any script # Block out Trying to set to PHP GLOBALS variable via URL
RewriteCond% {QUERY_STRING} GLOBALS (= | [| % [0-9A-Z] {0,2}) [OR]
Any script # Block out Trying to modify a _REQUEST variable via URL
RewriteCond% {QUERY_STRING} _REQUEST (= | [| % [0-9A-Z] {0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F, L]
#
########## End – Rewrite rules to block out Some common exploits