Forum Moderators: phranque
I need to have a proper redirect for Joomlas multilanguage handling via Joomfish component via .htaccess:
Now, instead of:
[website.com...]
I need
[website.com...]
Any guru around to help, please?
Jim
# RewriteRule ^(index.php?lang=en) /english.html [QSA,L]
# RewriteRule ^/index.php?lang=en /english.html [L]
# RewriteRule ^/index.php?lang=en [website.com...] [L]
# Redirect 301 /index.php?lang=en [website.com...]
# RewriteRule ^([^/]*)\.html$ /index.php?lang=$1 [L]
# RewriteRule ^index.php?lang=(.*)$ /english.html [L,R=301]
and I do have, of course, RewriteEngine on
Again, I am not a programmer, so copying others source and trying to apply it correctly is the most I can do.
Can anyone help, please?
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?lang=en\ HTTP/
RewriteRule ^index\.php$ http://www.example.com/english.html [R=301,L]
Our forum charter [webmasterworld.com] contains links to resources to help you learn the basics of mod_rewrite "programming" and regular expressions pattern-matching. Using mod_rewrite without understanding how it works can be quite dangerous to your site. So if you do not wish to learn about it, consider seeking professional assistance.
Jim
Finally, now it appears that no matter how .htaccess looked like, the joomla seo component had overwritten these rules by another error which has been produced AFTER parsing .htaccess.
Which all ends up in a simple end - never believe there is a simple solution. And never give up :))