As it has the com_k2 url pattern, the existing URLs look like :
website/index.php?option=com_k2&view=itemlist&task=user&id={a number}
After processing the joomsef, the url is :
website/index.php/component/k2/itemlist/user/{a number}
And I would like to change them to look like this :
{a number}.website/
or
{a number}.website/index.php/component/k2/
I tried to add a RewriteRule in .htaccess file
RewriteRule ^(.*)index.php/users/([a-zA-Z0-9_-]+)$ /website/index.php?option=com_k2&view=itemlist&task=user&id=$2 [L,QSA,R]
For example:
website/index.php/users/{a number}
to
website/index.php?option=com_k2&view=itemlist&task=user&id={a number}
but it just redirect to this page without replace
Could you please tell me how to do?
Thanks!!