Subscribe to our RSS Feed
Dec 26 2007
Upgrading OpenSEF to sh404SEF - and taking Mosets Tree with you
Written by TomThorns   
Thursday, 27 December 2007

We have been long standing users of OpenSEF to create joomla search engine friendly urls, mainly because when we first started fooling around with SEF urls it was the best component out there - some would say SEF Advanced from Sakic was better but it certainly wasn't $40s better!

Over the past year or so OpenSEF hasn't been updated and it's now clear that it's abandonware. This left us in a sticky situation as we, and many others, needed a replacement.

After a great deal of research it was obvious that the only two contenders were JoomSEF from Artio and sh404SEF from Yannick at extensions.siliana.net. Looking into the two components further sealed the deal - sh404SEF is far superior, the sheer amount of features and plugins for it are unbelievable. We'll save the details for a later blog post dedicated to sh404SEF, it's worth it.

Having chosen the successor to OpenSEF the real work now started - we had to test and configure the new urls to ensure they were the same as the old OpenSEF ones on our largest site. This was of paramount importance to ensure that all the PR and links we had build up weren't thrown away in the switch.

Content was fine and it handled iJoomla components far better. The only problem was Mosets Tree, the most annoying this was that it was a minor problem causing major headaches! The old MTree urls were of the style:

http://mysite.com/dir-name/listing-name/visit/

Whilst the new urls were:

http://mysite.com/dir-name/listing-name/visit.html

Where "visit" can be replaced with "details", "recommend" etc etc.

We had anticipated using custom redirects to overcome this problem but soon realised that this wouldn't work as they would only go from internal joomla urls to SEF urls - not from old SEF urls to new SEF urls.

The answer was to read a great .htaccess tutorial and devise some custom rules to cover the problematic urls for Mtree. Here is the result, all work prefectly:

########## Begin - Redirecting Old Mosets sef urls to new ones
#
RewriteRule ^dir-name/(.+)/details/ dir-name/$1/view-details.html [l,r=301]
RewriteRule ^dir-name/(.+)/visit/ dir-name/$1/visit.html [l,r=301]
RewriteRule ^dir-name/(.+)/review/ dir-name/$1/write-review.html [l,r=301]
RewriteRule ^dir-name/(.+)/report/ dir-name/$1/report.html [l,r=301]
RewriteRule ^dir-name/(.+)/recommend/ dir-name/$1/recommend.html [l,r=301]
#
########## End - Redirecting Old Mosets sef urls to new ones

All you need to do is copy and paste the above code into the top of your .htaccess file and all incoming visitors to the old urls will be 301'd to the new ones - the 301 means your PR will go with it too!

Comments (2)Add Comment
written by Lloyds Apple, January 27, 2008
Thanks for the info! I'm gonna talk to our programmer to see when she'll do this. Not that I could not do it but I'm more likely to screw it up.

I hope it works...

written by TomThorns, February 01, 2008
Well let me know if you get stuck and need a hand, it's worth doing! Make sure you read that .htaccess tutorial linked in the post, it's top notch.

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
 
Next >

Together, we're better...

If you've got a joomla site, either established or new, then get in contact with us! We plan on reviewing may joomla related sites, and through this we aim to build and develop a great network of community members. Plus it's great for your joomla seo...

Progression via partnership, it's the only way forward for all. Go on, get in touch...

IE Users - Get Firefox