Support

Admin Tools

#31140 htaccess cretion - Help on adding rules for Translator URL rewriting

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by dlb on Thursday, 21 March 2019 18:03 CDT

joomleb
Hi guys,
I'm using SEF Translate (automatic translations) that have the ability to create SEF URLS (e.g. www.yoursite.com/en) > see the point 8:
https://ordasoft.com/News/SEF-Translate-Documentation/how-to-configure-sef-translate.html

As you can see on the added file for you, to have back that feature I had to add manually this code to the .htaccess after the "##### RewriteBase set - END":

RewriteRule ^([a-z]{2})/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^([a-z]{2})$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(zh-CN)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(zh-CN)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(zh-TW)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(zh-TW)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(bs-Latn)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(bs-Latn)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(ceb)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(ceb)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(hmn)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(hmn)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(mww)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(mww)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]
RewriteRule ^(yua)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(yua)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]


Please, Where is better to paste that code into the Admin Tools htaccess maker to have it automatically included each time i recreate the file with Admin Tools ?

Many Thanks for help in advance!

dlb
Duplicate of #31140


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!