I have 2 separate websites, 1 is the main site for large devices such as laptop & pc.
https://example.com/
My 2nd site is for all mobile devices & tablets.
https://example.com/m
I found a post about this here,
So I edited from the following creating this
RewriteCond %{REQUEST_URI} !^/m/.*$
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ /m/ [L,R=302]
but it does not solve everything. It currently takes all requests from mobile device and directs them to
https://example.com/m
How can I make the following request from mobile device,
https://example.com/mywebpage1
=> https://example.com/m/mywebpage1