Revision: 88491
Updated URL
Updated Code
Updated Description
at March 1, 2022 01:06 by chrisaiv
Updated URL
https://www.chrisjmendez.com/2014/09/14/wordpress-htaccess-performance-tricks/
Updated Code
https://www.chrisjmendez.com/2014/09/14/wordpress-htaccess-performance-tricks/
Updated Description
https://www.chrisjmendez.com/2014/09/14/wordpress-htaccess-performance-tricks/
Revision: 67360
Updated Code
at September 24, 2014 14:59 by chrisaiv
Updated Code
# ########################################
# Custom HTACCESS
# DESCRIPTION: Tips and tricks to beef up your wordpress quality
# ########################################
# Prevent people from browsing your WordPress folder structure
Options All -Indexes
# Prevent people from browsing your WordPress folder structure
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
RewriteRule ^feed/?.*$ http://feeds.labnol.org/labnol [L,NC,R=301]
</IfModule>
# Hide your XML Sitemaps from Search Engines
<IfModule mod_rewrite.c>
<Files sitemap.xml>
Header set X-Robots-Tag "noindex"
</Files>
</IfModule>
Revision: 67359
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 13, 2014 10:19 by chrisaiv
Initial Code
# ########################################
# Custom HTACCESS
# DESCRIPTION: Tips and tricks to beef up your wordpress quality
# ########################################
# Prevent people from browsing your WordPress folder structure
Options All -Indexes
# Prevent people from browsing your WordPress folder structure
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
RewriteRule ^feed/?.*$ http://feeds.labnol.org/labnol [L,NC,R=301]
</IfModule>
# Hide your XML Sitemaps from Search Engines
<IfModule mod_rewrite.c>
<Files sitemap.xml>
Header set X-Robots-Tag "noindex"
</Files>
</IfModule>
# Remove extra Query Parameters from URLs
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} !=""
RewriteCond %{QUERY_STRING} !^p=.*
RewriteCond %{QUERY_STRING} !^s=.*
RewriteCond %{REQUEST_URI} !^/wp-admin.*
RewriteRule ^(.*)$ /$1? [R=301,L]
</IfModule>
Initial URL
Initial Description
These are performance tricks to improve your Wordpress application.
Initial Title
Wordpress: .htaccess performance tricks
Initial Tags
wordpress, htaccess
Initial Language
Apache