Welcome, Guest
Username Password: Remember me

What if domain doesn't use www
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: What if domain doesn't use www

What if domain doesn't use www 10 years, 7 months ago #15746

  • nl1dmo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I have a domain name for example mydomain.com
The domain in listed in google without the www and it must stay there without it.

We created a subdomain called mydomain.com/mob/

I'm testing with the component to redirect iphone users to that domain and i only get errors.

is there a way to let this work (maybe a hack in the scirpts?)

Re: What if domain doesn't use www 10 years, 7 months ago #15747

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
mydomain.com/mob/ is not a subdomain, subdomain would be mob.mydomain.com

Re: What if domain doesn't use www 10 years, 7 months ago #15750

  • nl1dmo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I know. i have a special menu for mobile users. this is a special layout that i can set with a menu item. For mobile devices i create a menu for a special component and there i set the layout. the data displaed is the same it's only the layout. for mobile users all URL's are mydomain.com/mob When a desktop user lands on mydoamin.com/category1 the mobile user normaly must land on mydomain.com/mob/category1 I now also tested with mobile.mydomain.com and the redirection works great. i anly need to set /mob/ after the mobile.mydomain.com any ideas? I think the script doesn't work with a /subfolder after the domainname.
Last Edit: 10 years, 7 months ago by nl1dmo.

Re: What if domain doesn't use www 10 years, 7 months ago #15767

  • nl1dmo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Who can help me.When I set mij mobile page to: mobile.mydomain.com/mob the scripts gets errors. i need to set /mod and the of the domain,

Found it i used htaccess
RewriteCond %{HTTP_HOST} !^mobile.mydomain.com$ [NC]
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos" [NC]
RewriteRule ^(.*)$ http : / / mobile.mydomain.com/mob/$1 [L,R=302]
Last Edit: 10 years, 7 months ago by nl1dmo.
  • Page:
  • 1
Time to create page: 0.07 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.