I recently installed Drupal 6.13 (latest) and am seeing visiting strange URLs such as this one:

WRONG: http://bleachbit.sourceforge.net/es/node/8
RIGHT: http://bleachbit.sourceforge.net/download

The module 'locale' is disabled and 'i18' is not installed! As far as I remember, I never used either on this site. (Later I would be interested in those modules, but not right now.) I do use global redirect, meta tags, nofollowlist, pathauto, poormanscron, and captcha.

Google Analytics indicates visitors on these pages are 50% English (not es/Spanish)!

Please help me fix as this leads to some 404 errors (because of relative links).

Comments

avpaderno’s picture

I tried on my test site, and I am not able to reproduce it; when I disable locale.module, http://localhost:8888/dr62/node/5500 is accepted, but http://localhost:8888/dr62/es/node/5500 is not.

Or there is an URL alias set, or some module is handling the first URL you wrote, or there is a rule in .htaccess that redirect the URLs of the first type to the correct one.

What I find strange is that the links in the page accessed using http://bleachbit.sourceforge.net/es/node/8 are correct; they should normally be something like http://bleachbit.sourceforge.net/es/node/8/download.

andrewz’s picture

Thanks for testing. My .htaccess is fairly standard. I don't see URL aliases or other modules doing this.

I noticed in /admin/content/node/ that a few Pages are English but others are Language Neutral. I don't see how that was set originally or how to change it now.

andrewz’s picture

Long story made short, I fixed it like this
UPDATE languages SET enabled = 0, weight = 0 WHERE language = 'es'

So I had the local module disabled, but somehow Spanish existed, was active, and being used.