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]
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!

trichnosis
said:
|
Hi; I was using opensef for Joomla 1.0.x and i'm currently waiting a stable sef component for j1.5 . i will use joomla 1.5 after this |
Ricardo Corai
said:
|
I´m using SEF Advance for J! 1.0.x but I don´t know if is convenient still using this extension or only J! 1.5.x with short URLs. Any suggestion? |
damodamodamo
said:
|
in the post above you say this code should be added to your .htaccess: rewritecond %{http_host} ^compassdesigns.net [nc] rewriterule ^(.*)$ http://www.compassdesigns.net/ [r=301,nc] clearly you'd change compassdesigns.net to your own domain name, but in the previous post you refer to above, you suggest the following code: RewriteCond %{HTTP_HOST} ^yoursite.com$ [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] they're both very similar but the second one has the '' in the non www URL is there any significance to this? |
damodamodamo
said:
|
the backslash hasn't shown up above. if you look here: http://www.compassdesigns.net/...bsite.html you'll see what i mean about the backslash .. |
damodamodamo
said:
|
yep, but in the previous post here: http://www.compassdesigns.net/...bsite.html you've got a backslash right before the .com in the first line. is that supposed to be there, because it's not in the example above |
Mark
said:
|
Is there an advantage to using the .htaccess method instead of using Sh404SEF's method of building them inside of the joomla component? There you can search for top 404s, and then redirect them as you wish. Seems more efficient, but not sure if it's kosher for Google rules. I believe Sh404sef is set up to do 301 redirects and avoid duplicate entries. |

Welcome to the new Compass Designs website, powered by Joomla 1.5! The goal of this new site is to be the place to bookmark if you are looking for quality Joomla tutorials, news and tips.


