303 redirect - multilanguage site

Discuss Search Engine Optimization in relation to Joomla! 2.5. This forum will also have discussions on SEF/SEO Joomla! 2.5 extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
studio204
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Apr 18, 2010 11:06 pm

303 redirect - multilanguage site

Post by studio204 » Sat Dec 31, 2011 11:58 am

Hello and Happy New Year :)

My site is on Joomla 1.7.3 and uses 2 languages - English and Russian. The problem is that I always receive 303 instead of 301 redirect, which is not good for search engines...
I checked with different services like host-tracker. com - with the same result: error 303.

My site is http://gez21.ru

Is there any solution for this problem - to receive 301 redirect and not 303?

Thank you in advance

alwayshere
Joomla! Intern
Joomla! Intern
Posts: 50
Joined: Wed Feb 08, 2012 10:03 am
Contact:

Re: 303 redirect - multilanguage site

Post by alwayshere » Sat Feb 11, 2012 6:54 pm

I checked your website using these below tools and both of them returned 301 redirect which is fine for search engines.

Code: Select all

http://www.internetofficer.com/seo-tool/redirect-check/
http://www.redirectchecker.com/www.gez21.ru
I love Joomla. I occasionally write about computer here.

studio204
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Apr 18, 2010 11:06 pm

Re: 303 redirect - multilanguage site

Post by studio204 » Sat Feb 11, 2012 10:16 pm

I wrote that post more than month ago.
Yes, there IS a 303 redirect.
I had to change the code to receive 301. The file is

libraries/joomla/application/application.php

I changed

Code: Select all

header($moved ? 'HTTP/1.1 301 Moved Permanently' : 'HTTP/1.1 303 See other');
to

Code: Select all

header($moved ='HTTP/1.1 301 Moved Permanently');
So, now there is 301 redirect.

mdagosti
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Oct 06, 2014 12:06 am
Contact:

Re: 303 redirect - multilanguage site

Post by mdagosti » Mon Oct 06, 2014 12:09 am

Hi
I read this interesting months ago and I applied it succesfully to my websites.
What about joomla3?
I can't find that file anymore...
Thanks


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 2.5”