Quote from: alejaaandro at Dec 28, 2010, 10:50 AM
found it!
OK...you found the article you mentioned, which supports your original concerns, but it seems you’re no further along.
I do think your concern regarding MODx’s use of 302 redirects may be valid, though you might want to look at your own situation in a different way.
I found this post because I’m having a somewhat similar issue, and after poking around inside MODx’s PHP, I see that MODx only does one type of Header redirect. And as you have noticed, that redirect is a 302 and not a 301. Looking at the PHP function used, it’s obvious there were/are no plans to allow for we end-users to choose the type of redirect used. I see that a very ugly PHP hack is possible which would force all Header redirects to be 301s instead of 302s...however...that’s not a realistic solution, and in your case, I think you have other more important issues.
Looking at your URLs, your concern is that www.athenslindyhop.com/el and www.athenslindyhop.com/el/ might both wind up in the SERPs, which is bad, because they’re actually the same page. Yes, the standard solution is to 301-redirect one to the other...but before you jump there...you need to first choose one, and then fix all of the links on your own site. Because the main way these problems start in the first place is from links right on your own site...if YOU link to your own site in two different ways, then of course the search engines are going to pick that up!
Anyway...looking at a "view source" of your home page, www.athenslindyhop.com, I see that you’re linking to the two main pages (an English-language page and a Greek-language page) WITHOUT the trailing slash. That is, your HTML links have href values of "/en-temp" and "/el". And yet, your site’s URLS all have a "hierarchical structure" which indicate the trailing slash is the correct version: athenslindyhop.com/el/contact-us.html, athenslindyhop.com/el/events-parties/big-swing-social-dancing.html , etc.
Without the trailing slash, there is potential confusion, when trying to decide what no slash COULD mean:
/el
/el.php
/el.html
/el/
/el/index.php
/el/index.html
On top of that, looking out at some of the SERPs, your decision has already been made for you...the trailing slash is already there, in the results. (google site:athenslindyhop.com).
I think the reason Google made this choice is because you’ve used the new Canonical link reference, and indicated the trailing slash is preferred:
<link rel="canonical" href="el/" >
(sidenote: best practice is to include the full URL. in this case, "
http://www.athenslindyhop.com/el/", and not just "el/". See Google Webmaster Central for details.)
So, I suggest that you put out the fires now (add trailing slashes to your HTML links), and you might not need to worry about 301 and 302 redirects at all.