I have a book PHP website that uses URL Rewriting rules already defined on my .htaccess file on my Apache Server, so due to the following rule I already have URLs like
http://www.example.com/livro/name-of-book.html
RewriteRule ^livro/([^/]+)\.html$ livro.php?livro=$1 [QSA,L]
I want to improve my website and make a mobile version of it and I want to use URLs such as
http://m.example.com/livro/name-of-book.html
Which rules should I append to my .htaccess file?
Before the rules that you have, add this: