| How to Redirect old URLs after migrating |
| Wednesday, 05 March 2008 19:00 |
|
OK, so in my last post, Live Day 1 SEF URL problems I explained my master plan to do some htaccess redirection for all my old links. Now, despite my current issue getting data on 404's, I can still make some headway because I *do* know some of the URL's that need redirecting. The best resource I have managed to find for htaccess, 301 Redirects & SEO is this. Based on this, we will do a few things. As I have discussed before (Get Free Pagerank for your Joomla Website), you should always redirect non-www to www so you can concentrate your page rank. This needs this in your htaccess file: rewritecond %{http_host} ^compassdesigns.net [nc] Next, if you have been watching, I was making the site on makeajoomlablog.com. We need to redirect any old links: RewriteCond %{HTTP_HOST} ^www.makeajoomlablog.com$ [NC] Next, we can redirect a few of the links I know are popular: Redirect 301 /new-joomla-book http://www.compassdesigns.net/joomla-blog/New-Joomla-Book.html Now the next bit is tricksy. We have a boatload of URL's out there for various (say) tutorial links. We don't want to have to go through one by one, so lets redirect them all to the same page where people can see a list of all the new ones. RewriteRule ^tutorials/joomla-tutorials(.*)$ http://www.compassdesigns.net/tutorials.html [L,R=301] Now we are staring to reduce the traffic on that 404 page! |
Want a Joomla website, but don't have an IT department?
Simplweb provides fully managed Joomla hosting on high performance cloud servers. Unlimited support on Joomla, managed backups, security and updates.
Find out more how Simplweb can make Joomla... "Simpl" and start building a successful Joomla webiste with our free month trial. We'll send you some more information and you'll be first in line join the easiest and fastest way to learn Joomla.