I've had to explore htaccess quite a bit since my original post about 301 redirect with htaccess - so below all you need to get started with .htaccess tools and 301 redirect.
Apache web servers use a special access control file named .htaccess, which uses a combination of directives to allow or disallow access to files or folders on the server. The normal location for your .htaccess file is in the web root directory.
The .htaccess file can also be used for creating custom redirect rules for files, folders and entire websites that have been moved or deleted, e.g. 301 redirect directives, prevent image hot-linking (direct links from other sites) and more
- Apache htaccess tutorial
- Ultimate default skeleton .htaccess file
- Clockwatchers htaccess Tools
Excellent site with generators to create .htaccess files for hotlink protection, password protection, 301 redirects, custom error pages etc.
301 redirect for a single page
<HEAD>
<META HTTP-EQUIV="refresh" content="0;URL=http://edgecrafting.blogspot.com/newpage.htm">
<TITLE>Page has moved</TITLE>
</HEAD>
You only need these 3 .htaccess links
If your websites intended users are limited to a specific geographic region you might want to use htaccess block list to allow or disallow certain ip-adresses based on geo-ip location.
- MaxMind GeoIP
IP info for countries - Free selected blocklist maintained by wizcrafts.net
Nigerian Blocklist, Chinese Blocklist, or Russia and Exploited Server Blocklist
0 comments:
Post a Comment