The .htaccess file and the power it has to improve your website. Although .htaccess is only a file, it can change settings on the servers and allow you to do many different things, the most popular being able to have your own custom 404 error pages. .htaccess isn't difficult to use and is really just made up of a few simple instructions in a text file. If your server runs Unix or Linux, or any version of the Apache web server it will support .htaccess, although your host may not allow you to use it.
There is a huge range of things .htaccess can do including:
password protecting folders, redirecting users automatically, custom error pages, changing your file extensions, banning users with certian IP addresses, only allowing users with certain IP addresses, stopping directory listings and using a different file as the index file.
Custom Error Pages
The first use of the .htaccess file which will cover is custom error pages. These will allow you to have your own, personal error pages (for example when a file is not found) instead of using your host's error pages or having no page.
This will make your site seem much more professional in the unlikely event of an error. It will also allow you to create scripts to notify you if there is an error (for example I use a PHP script on Free Webmaster Help to automatically e-mail me when a page is not found).
You can use custom error pages for any error as long as you know its number (like 404 for page not found) by adding the following to your .htaccess file: ErrorDocument errornumber /file.html If the file is not in the root directory of your site, you just need to put the path to it: ErrorDocument 500 /errorpages/500.html
These are some of the most common errors:
401 - Authorization Required
400 - Bad request
403 - Forbidden
500 - Internal Server Error
404 - Wrong page
Then, all you need to do is to create a file to display when the error happens and upload it and the .htaccess file.
Content Website Builder - Create A Website In 2 Easy Steps. Content Website Builder Is An Easy To Use Website Creation Software. You Can Make Websites With Hundreds Of Self-updating Dynamic Pages With Keyword Rich Text, Images And Videos. Integrates eBay(R), Adsense, Amazon, Yahoo!Answers And Youtube. Click Here!
Dreamweaver Interactive Video Tutorial. Discover Everything You Need To Know To Build Your Website Step By Step From Start To Finish With This Dreamweaver Tutorial.
Click Here!
Ultimate Content Creator. The Software Used By Professionals To Dominate Google Is Now Available To The Public. Builds Sites In Under 5 Minutes The Way Google Wants Them Built.
Click Here!
SiteBuilder Elite. Create Content-rich Websites With The Click Of A Button. Monetize With A Variety Of Income Streams Including Google Adsense, Amazon, AdBrite, ModernClick, Kontera, Chitika. All Created Pages Have Rss As Standard. Add Instant Content. Sites Seo Optimised.
Click Here!
The Ultimate Guide To Joomla - Step By Step Joomla Videos. Now Including Sample Joomla Site Built From Scratch. Click Here!
Ready Made Joomla Websites + Video Tutorials + Bonuses. Click Here!
Wp Affiliate Pro - The #1 Plugin For WordPres Blogs. Instantly Identify, Manage & Track Your Highest Performing Affiliate Links Over Your Entire Wordpress Blog In Less Time Than It Takes To Pour A Glass Of Kool Aid And Make More Money Doing So. Click Here!
XSitePro 2 - Total Site Management. The Hugely Successful XSitePro 2 Comes To CB! Professional Web Site Design Made Easy, With This Category-beating New Release... Build Quality Sites Featuring Audio, Video, Rss, Xml, Mobile Web, Search, Name-grab, Adsense, Amazon-Ads, And Lots More. Click Here!
Seo One Way Links - Recurring Monthly $$$ - Increase Rakings & Sales. One Way Links To Your Website. Top Search Engine Rankings In Only 30 Days. Great Prices On All Packages. Recurring Income - We Are Established And Will Earn Money For Our Affiliates. One Of Highest 'future Earnings' Publishers In Computer Category. Click Here!
Cover Your Product & Sell More! The Home Of 3d Virtual Covers For Ebooks, Ezines & Software Boxes! Click Here!
Affiliate Video Brander - Make Money With Online Videos. Now You Can Use Our Ridiculously Easy Video Tool To Make Your Affiliate Commissions Explode Through The Roof...and Heres The Most Ingenious Part-- You Dont Even Have To Make Your Own Videos! Click Here!
Wordpress Plugins That Work. The Viva Wordpress Plugins And Themes Makes Maintaining A Cutting Edge, Magazine Style Wordpress Blog A Snap. Automate Your W Themes Thumbnails On The Fly, Scrollable Carousels, Smart Google Maps And More. The Best Magazine Style Themes & Plugins Around. Click Here!
Cover Software Pro Ebook Ecover Generator. Easily Create Stunning Graphics For Ebooks, DVDs, CDs, Software Boxes, Membership Sites, And More. 45 Minute Video Tutorial Included. Click Here!
Web Design Mastery - Professional Web Site Design Made Easy. A Professional Web Site Design Course That Contains Over 500 Pages Of Quality Information, Codes And Examples. Click Here!
Quick Article Pro & Submitter. Quick Article Pro Offers Best Article Generation Solutions For Individuals And Organizations. It Offers Accurate Article Generation Quickly. Article Submitter Allows You To Submit Articles To Niche Article Directories That Accept Fast Listings. Click Here!
The Ultimate Guide To Drupal - Step By Step Drupal Videos. Now Including Sample Drupal Site Built From Scratch. Tap Into The Power Of Drupal, Slash Your Production Time And Create Better Drupal Click Here!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment