background preloader

Htaccess

Facebook Twitter

6 .htaccess Tricks for Better WordPress SEO & Security. Here are that will help improve the security and SEO quality of your WordPress-powered site. We do this using .htaccess to establish for key peripheral files, such as your robots.txt , favicon.ico , and sitemap.xml files. Canonicalization keeps legitimate bots on track, eliminates malicious behavior, and ensures a better user-experience for everyone. On the menu: Canonical robots.txt Canonical Favicons Canonical Sitemaps Canonical Category, Tag & Search URLs Canonical Feeds Simpler Login URL Before making changes.. 5 Fun and Practical Htaccess Solutions. Today we will go over some practical uses of htaccess files that you can use in your web applications.

5 Fun and Practical Htaccess Solutions

Requirements Htaccess files are plain-text configuration files used by the Apache HTTP web server. They allow users to set directory level options without requiring access to the httpd.conf file. As such it is required that your server uses Apache, and a web host that allows htaccess files (the most popular hosts do). I assume a basic working knowledge of htaccess, but if you need to freshen up check out this article by Joseph Pecoraro 1. Hotlinking, or inline linking, is when one web site links directly to an object on another site. There are ways to fix this growing problem using htaccess. We will step through this line-by-line. First we need to turn on the rewrite engine in Apache, this allows us to redirect the user's request. 2. This is a great little tip if you have a spammer on your website.

Using the Order directive in the mod_access module we can specify IPs to deny and allow. 16 Useful .htaccess Tricks and Hacks For Web Developers. The .htaccess files (Hypertext Access file) is a very powerful configuration tool on Apache web server. The Apache web server has a number of configuration options that are available to the server administrator. The .htaccess is a simple ASCII text file placed in your website root directory. You can create and edit an .htaccess file using a text editor like notepad. Here in this blog post I have come up with useful 16 tips and hacks to configure your web server. Stupid htaccess Tricks. Welcome to Perishable Press!

Stupid htaccess Tricks

This article, Stupid htaccess Tricks, covers just about every htaccess “trick” in the book, and is easily the site’s most popular offering. In addition to this htaccess article, you may also want to explore the rapidly expanding htaccess tag archive. Along with all things htaccess, Perishable Press also focuses on (X)HTML, CSS, PHP, JavaScript, security, and just about every other aspect of web design, blogging, and online success. If these topics are of interest to you, I encourage you to subscribe to Perishable Press for a periodic dose of online enlightenment ;) General Information [ ^ ]

21 very useful htaccess tips & tricks. htaccess tips tricks. Following are few very useful htaccess tricks. 1. Custom Directory Index Files DirectoryIndex index.html index.php index.htm You can change a default index file of directory by using above snippet in your htaccess file. If a user request , Apache will serve up , or whatever file you specify. 2. ErrorDocument 404 errors/404.html You may want to redirect your users to an error page is any of the http errors like 404 occurs. ErrorDocument 404 /psych/cgi-bin/error/error?

The Definitive Guide to htaccess Techniques: Do’s and Don’ts - Noupe Design Blog. Aug 10 2009 Of all the elements of web design and coding, htaccess can be one of the most intimidating.

The Definitive Guide to htaccess Techniques: Do’s and Don’ts - Noupe Design Blog

After all, it’s an incredibly powerful tool and one that has the potential to completely break your site if you’re not careful. Below are a dozen basic htaccess techniques and tips to get you started. They’re not nearly as intimidating as many people expect, and if you study the code for a few minutes, I’m sure you’ll quickly grasp exactly how they work and why. After that are a few bewares and don’ts for working with htaccess to help keep you out of trouble, and some more resources for further working with htaccess.