| 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! |
If you want online classes delivered to the comfort of your own home, then you need to join Joomlashack University - an affordable online Joomla training course taught by the world's leading experts in Joomla education.
If you are struggling with Joomla and want expert help, then fill out the form below. We'll send you some more information and you'll be first in line join the easiest and fastest way to learn Joomla.