10 htaccess Hacks Every SEO Should Know | There’s a lot that you can do with an htaccess file, and of course, things can get pretty advanced in a hurry. Here, we’re going to keep things pretty simple. These are the 10 basic htaccess hacks that every webmaster should know. 1. Force Caching with htaccess Use: The following htaccess code won’t help the initial pageload, but it will significantly help subsequent pageloads by sending 304 status when requested elements haven’t been modified. FileETag MTime SizeExpiresActive on ExpiresDefault "access plus x seconds" I generally set the cache for one day (86400 seconds).
ExpiresByType image/gif "access plus x seconds"ExpiresByType text/css "access plus x seconds" Simple! 2. Use: I think this one is self explantatory. ErrorDocument 404 /notfound.html 3. Use: If you have permanently changed the URL structure on your site (via either optimization change or CMS migration), you will want to implement 301 redirects from the old URL to the new URL. The syntax for a basic 301 redirect is: 4. 5. 6. 7. Seo. 10 SEO Techniques All Top Web Sites Should Use | Freelance Folder | The Blog For Freelancers And Web-Workers. The Web Developer's SEO Cheat Sheet. Creating a Sweet High Value Keyword List in 5 Minutes : SEO Book.com. SEO Best Practices: SEOmoz's New Policies Based on Updated Correlation Data.