> this should be something like > > RewriteRule ^(.*)$ /msite$1 [L,R=301] Hello The structure of our site is as follows. Connections default to "desk.site" folder. If the incoming connection requests come from mobile phones, "msite" goes to the folder. But CSS, JS files are not coming. I made a symbolic link to the mobile site folder. Desktop /home/desk.site/public Mobil /home/msite/public ln -s /home/msite/public /home/desk.site/msite On Sat, Jan 13, 2018 at 6:24 PM, Walter H. <Walter.H@xxxxxxxxxxxxxxxxx> wrote: > > On 12.01.2018 22:23, Gokan Atmaca wrote: > > Hello > > I am redirecting Apache mobile clients to the mobile site. But the files like cs,js,font,img are not working. > > Can you help with this ? > > config: > > RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC] > RewriteRule ^ /msite/$1 [R=301,L] > > what is $1? > > this should be something like > > RewriteRule ^(.*)$ /msite$1 [L,R=301] --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx