About This Video
This video is
One of the most powerful, yet simple manipulations that can be done with your htaccess file is a basic redirect function.
A .htaccess file resides in the web-root directory of most Linux servers that have Apache installed (which is a majority of the servers online). This .htaccess file is a text file which contains user-defined server configuration settings, which include URL manipulations.
The simple and most common configuration setting is the redirect. Using this function, you can create pseudo directories and files on your local host that will redirect to other URLs. This can be used to hide (or cloak) affiliate links and manage the file linking structure of your website more efficiently.
The syntax is simple:
redirect {local/pseudo location} {destination URL}
Example:
redirect /google http://www.google.com
If this htaccess file resides on my blog at http://www.matthewbredel.com and I typed in:
http://www.matthewbredel.com/google
My host will redirect the user to:
http://www.google.com
This website uses Adobe® Flash™ Player 9
Download Flash Now
If you are using Internet Explorer, you will need to restart your browser
after installing Flash.
Adobe and Flash are registered trademarks of Adobe Systems incorporated.
All rights reserved.