Compassdesigns.net

Teaching - Web - Sailing

  • Home
  • Services

How to Redirect old URLs after migrating

March 6, 2008 By barrie@compassdesigns.net Leave a Comment

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]
rewriterule ^(.*)$ http://www.compassdesigns.net/ [r=301,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]
RewriteRule ^(.*)$ http://www.compassdesigns.net/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^makeajoomlablog.com$ [NC]
RewriteRule ^(.*)$ http://www.compassdesigns.net/$1 [R=301,L]

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
Redirect 301 /tutorials/joomla-tutorials/joomla-template-tutorial.html http://www.compassdesigns.net/tutorials/17-joomla-tutorials/48-joomla-template-tutorial.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!

Filed Under: Uncategorized

The Skinny

I am an entrepreneur, web consultant, author and educator.

I have been involved in starting a K-12 School District, a Private High School, and three web tech companies. I also wrote one of the original and best selling books on Joomla.

And I like sailing with kids.

Recent Posts

  • Teenager Invents New Type of Hunting Camo Suit
  • A Parent’s Guide to Proficiency Based Learning
  • Proficiency/Competency Based Learning in NGSS Classrooms
  • Hunting Camouflage Website Launched
  • Get More Email Newsletter Signups With These Easy Tips
  • Proficiency Based Learning Resources
  • Social Media Redux
  • How to turn off WordPress Comments if you use Disqus
  • The API was Yesterday. The Tomorrow is iPaaS
  • Left Hook Digital Named Zapier’s First Integration Developer Partner

Top Posts

  • Just another Blog Post by Louis Landry
  • How to set up a Joomla website for a School in under 30 seconds

Blogroll

See3D Camo

Blaze Orange Camo

Vermont CPR

Copyright © 2023 Compass Designs ยท Musings on Education, Life, Joomla and the Web by Barrie North