Redirection issue

General questions regarding the use of languages in Joomla! 3.x.

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
interacoustics
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Feb 18, 2016 8:52 am

Redirection issue

Post by interacoustics » Wed Jun 01, 2016 1:36 pm

Hello joomla forum,

We are having an issue where we have different langauge domains and one joomla installation with multilingual setup.

The issue is that all sites now are located like eg.

http://www.website.com
http://www.website.com/es

but if we have some products listed eg. below.

http://www.website.com/product
http://www.website.com/es/product

http://www.website.es/product does not link to http://www.website.com/es/product

Please help.

below are URLs so you can see yourself.

http://www.interacoustics.com/at235 -> default language.
http://www.interacoustics.com/es/at235 - spanish installed language

http://www.interacoustics.es/at235 -> want it to redirect to -> http://www.interacoustics.com/es/at235 and not to http://www.interacoustics.es/at235

thank you

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Redirection issue

Post by itoctopus » Thu Jun 02, 2016 11:29 am

You should add a global redirect to your .htaccess file (under the "es" website). The redirect should simply consist of the following:

Code: Select all

RewriteEngine On
RewriteRule (.*) http://www.[your-domain-name].com/es/$1 [R=301,L]
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter


Locked

Return to “Language - Joomla! 3.x”