2019-12-11, 21:00:51
(2019-12-11, 20:06:24)craiga Wrote: I'm using the i18n search and have looked for a setting to hide the '?lang=en' within the url.
I can't seem to find anything.
I'm using fancy urls setting from the backend too and just wanted the page name not the '?lang=en'
any ideas please
Try this:
Admin -> settings -> Custom Permalink Structure:
Code:
%nondefaultlanguage%/%parent%/%slug%/
If you have one language - update .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=en [QSA,L]
Red font - your language code.