? Success

User tests: Successful: Unsuccessful:

avatar grayz7z
grayz7z
11 May 2014

Joomla! Issue Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33722&start=0

When creating redirects, usually non-SEF links are saved as they are universal (alias can be changed later; when SEF is switched off links are still valid) and easier to find (for instance by using JCE Editor to find links to articles). The problem with that is that on SEF site, non-SEF links are explored and displayed by search engines.
Here is a solution, how to detect non-SEF links and convert them to SEF ones.

avatar grayz7z grayz7z - open - 11 May 2014
avatar zero-24
zero-24 - comment - 11 May 2014

@grayz7z Cool one but i have find a issue :)

With the language filter plugin enabled and this redirection:
source:
http://www.example.org/index.php/en/?option=com_content&view=article&id=10000000&Itemid=266&lang=en
destination:
http://www.example.org/index.php/en/?option=com_content&view=article&id=10&Itemid=266&lang=en

After the change Joomla send a 404 error.
As the result is: http://www.example.org/index.php/en/en/content-component

see the double "/en"

avatar grayz7z
grayz7z - comment - 11 May 2014

It's not very clear. In your example (link #1), the language code is used 2 times. However,
http://www.example.org/index.php/ua/ is for SEF enabled,
http://www.example.org/index.php?lang=ua when SEF disabled

When you keep an article open with non-SEF URL, change the site setting by putting SEF=on, refresh the page, really the article's URL appears to have to language strings as in your link #2.

BUT in case of SEF enabled, new redirect link should still look like non-SEF (no first /en/):
http://www.example.org/index.php?option=com_content&view=article&id=10&Itemid=266&lang=en
In this case everything is Ok.

avatar brianteeman
brianteeman - comment - 8 Aug 2014

Closed as per the comment on the tracker

avatar brianteeman brianteeman - change - 8 Aug 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-08-08 14:47:59
avatar brianteeman brianteeman - change - 8 Aug 2014
Title
Redirecting to SEF links when SEF is enabled
[#33722] Redirecting to SEF links when SEF is enabled
avatar brianteeman brianteeman - close - 8 Aug 2014

Add a Comment

Login with GitHub to post a comment