anthonys - 29 November 2009 12:00 PM
I’m moving from a custom coded site to EE soon. So I will need to have Google redirect some 600 old site links to new EE links. I was going to use .htaccess to do this.
If your new URLs are similar to your old ones you would probably benefit more from using a regular expression to match the patten of the old URL and then forward to the new URL. Example: if your old link is mysite.com/widgetbox/blue-widget/ and your new location of that link is mysite.com/EE-widgets/blue-widget/ then you might just want to replace the ‘widgetbox’ portion and not rewrite the entire URL. If you haven’t used mod_rewrite before in .htaccess I can throw some helpful links out for you.
anthonys - 29 November 2009 12:00 PM
Isn’t this a big hit on site performance when you factor in that it has to run for every page visitor that came in from the old google link? It would be something like 13 queries (I think this is what I read an empty template is) just to load that widgetbox template group, + 1 query to the database to match a possible redirect. I wonder how long it takes google to replace the old links with the new links in their index though. If it is only like a week, that would be only a week of possibly tons of database calls.
Aagin, in your situation I think .htaccess may be the better route which wouldn’t even hit EE’s template parser until after the redirect. Redirect Helper (Lite and Pro) is meant to make SEO redirects easy for someone without access to server-lever rewrites or redirects but it’s primarily for ‘campaign tracking’.
That said, I’m still experimenting with a solution for Redirect Helper Pro that writes to your .htaccess file specific rules you set in the module area to minimize the impact on the server for larger traffic sites.
anthonys - 29 November 2009 12:00 PM
I’m just thinking performance wise it is probably best to go with adding the redirects manually to my .htaccess file.
Always! A server-level redirect will always be faster than running it through something like PHP. In perspective, on my personal site I currently have 14 redirects setup in Redirect Helper and only 2 of them are for SEO purposes. I will remove them after 4 weeks. The rest are for “tracking” things