This was posted on 12/04/2010 | (No Comments Yet)
Quick and easy htaccess code snippet to save you some negative points when doing website redesigns or changing filenames on your websites. This is a GOOGLE friendly way of redirecting your old file locations to new ones. Google typically picks up on these in about a week or two after you first upload.
You can toss this in your .htaccess to tell your server where to send your clients when they try and access a file. This is called a <b>301 redirect</b>, which essentially tells search engines and browsers that your file has been <b>temporarily moved</b>.
This also works if you want to redirect a folder.
As always, you can put as many of these as necessary in your htaccess file. I have a client with a good twenty or thirty of these with no issues. Just make sure you don't accidentally redirect a file or folder that is in use.
Have I Helped You? Share Some Love!
Comments
» No Comments have been made on this. How about you start us off?
Comment On This
Browse By Category
- All Posts
- Useful Websites
- Money Savers
- Tips And Tricks
- Social Media
- Guides and Information
- PHP
- How-Tos
Latest Posts
- » PHP Unserializer
- » How To: Quickly Add a New PHP Extension Via SSH
- » Easily Open A TCP Port On Your Stock cPanel Server
- » Free Code: Find The Total Line Count Of A Folder Using PHP
- » Free Code: ReCaptcha Form Validation With PHP
- » View All
Advertising
© Max Morgan Design 2009 - 2012 | Page Generated In 0.17818 Seconds Using 40 MYSQL Queries


