You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gokan Atmaca <li...@gmail.com> on 2018/01/12 21:23:21 UTC

[users@httpd] .htaccess mobil client

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]

Re: [users@httpd] .htaccess mobil client

Posted by Gokan Atmaca <li...@gmail.com>.
> What do your access and error logs show?

There is no error. The access logs are as follows.
x.x.x.x.x- [13/Jan/2018:15:52:04 +0300] "GET
/e/home-ajax-get-prepared-orders HTTP/1.1" 200 1062
"http://a.desk.com/e" "Mozilla/5.0 (Windows NT 10.0)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79
Safari/537.36 Edge/14.14393"


On Sat, Jan 13, 2018 at 10:52 PM, Richard
<li...@listmail.innovate.net> wrote:
>
>
>> Date: Saturday, January 13, 2018 22:43:38 +0300
>> From: Gokan Atmaca <li...@gmail.com>
>>
>> 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.
>> <Wa...@mathemainzel.info> 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]
>
>
> What do your access and error logs show?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess mobil client

Posted by Richard <li...@listmail.innovate.net>.

> Date: Saturday, January 13, 2018 22:43:38 +0300
> From: Gokan Atmaca <li...@gmail.com>
> 
> 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.
> <Wa...@mathemainzel.info> 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]


What do your access and error logs show?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess mobil client

Posted by Gokan Atmaca <li...@gmail.com>.
> 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. <Wa...@mathemainzel.info> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess mobil client

Posted by "Walter H." <Wa...@mathemainzel.info>.
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]