Heads up: HTACCESS redirects are for LAMP server environments only. Microsoft IIS or any other Operating System will assume you are out of your mind if you upload this file to root.
But Ivan, what's the benefit of HTACCESS redirects? it's picked up by search engines much more easily than javascript, and integrated 10 times faster. The PHP header location command does the same thing, but it also isn't as time efficient.
- 1. create a new text file, and rename it to 1.htaccess.
- 2. connect to your FTP's root.
- 3. find out what file you would like to redirect and redirect to. Then change the following line of code accordingly:
- 4. Redirect /filetoredirect.html http://www.domainto.com/filetoredirectto.html
- 5. Lastly, save the file and upload to root. Then rename it to .htaccess
Need to add more redirects? simply hit enter on your keyboard to add another line.