why do you want a subdomain??

dryabov
13 years, 3 months ago
header('Location: www.detheeketel.nl/') just redirect browser to another domain, so user leaves the subdomain.
In your case it's better to try to use smth like
<?php
include 'path/to/joomlas/on/main/domain/index.php';
hostess
13 years, 3 months ago
As far as I understand, this solution is 'the other way around' it redirects visitor TO a subdomain.
I meant to have users comind to the subdomains, redirected to the main domain. There the mobiljoomla component should take care of business.
My index.php ON the subdomains read: "<?php
header('Location: www.detheeketel.nl/'); /* send browser to www.site.nl */
?>"
dryabov
13 years, 3 months ago
My host uses 'Direct Admin' so I cannot find a way to redirect those subdomains to the root.

Seems in Direct Admin it's called "Domain pointer" (but maybe in this case CNAME record in DNS should be added manually)..

Trying to switch (Firefox) to 'iphone' it still shows the original site.

Most likely It's because of MJ saves current "state". You should clear cookies after switch to another UserAgent. iPhone version works: www.detheeketel.nl/?device=iphone
glauzex
13 years, 1 month ago
Hi, I'm new here...

I've got a problem here...

I've created the subdomain (m.domain.com), I've installed the Mobile Joomla, I've change the redirect settings on Mobile Joomla Global Configurations to m.domain.com, but when I open up the m.domain.com it is not showing anything... is there something wrong? Should I Copy-Paste my original Joomla Site ti my mobile folder at Cpanel? 

Or... is there any DETAILED tutorial about installing this apps on my Joomla site and make it work? 

Thanks...
hostess
13 years, 1 month ago
Did you use your standard browser?
If so, it will never be regarded as a mobile.

For trials please use the Opera Mobile launcher (dev.opera.com/articles/view/opera-mobile-emulator/)
This will be regarded by the software (mobiljoomla) as a mobile apparatus.
dryabov
13 years, 1 month ago
glauzex wrote:
I've created the subdomain (m.domain.com), I've installed the Mobile Joomla, I've change the redirect settings on Mobile Joomla Global Configurations to m.domain.com, but when I open up the m.domain.com it is not showing anything...


Subdomain should be an alias to main site domain or have the same DocumentRoot path.
jasondhsd
13 years ago
Ok I need some help.  My mobile site works good with the auto detect if I type in my main domain from phone but when I setup a subdomain it just redirects back to the main domain. 

So for example if I type in m.jrdtech.net on my android it redirects to www.jrdtech.net and displays my mobile page.  If I type in m.jrdtech.net in a normal computer browser it goes back to www.jrdtech.net and displays the normal page.  I want m.jrdtech.net to display a mobile page no matter what device I type it in on. Like m.facebook.com I can type into a normal browser and still get the mobile site.  

When I created the subdomain I set the documentroot the same folder as my main domain /public_html/  I'm also running sh404sef not sure if that would affect anything.
dryabov
13 years ago
Do you have redirect in .htaccess?
hostess
13 years ago
I don't see your problem while I use the Opera Mobile Emulator.
address : m.jrdtech.net/ Result: a nice mobile view. Address : www.jrdtech.net/ Result: Same view.
So I don't see your problem.
What phoe type do you use?
Did You try the Opera Mobile Emulator too?
If not, your 'useragent' in any normal broser will show ypou the 'normal' page. That's the trick behind Mobile Joomla. It simply 'recognizes' the useragent and based on that I redirects the visitor.
jasondhsd
13 years ago
I have this 
RewriteEngine OnRewriteCond %{HTTP_HOST} !^www.jrdtech.net$ [NC]RewriteRule ^(.*)$ www.jrdtech.net/$1 [R=301,L]

So when someone types in jrdtech.net it will go to www.jrdtech.net 

My main concern to getting adwords to display on mobile devices. Right now adwords is saying "The markup language targeted by your mobile ad isn't compatible with the mobile phone that requested it"  my assumption is that google is only seeing the markup for the main site and not recognizing that it redirects when accessed by a mobile device.  Therefore I want to create a domain that will always display the mobile site.  
1 2 4

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.