How-to - Subdomain

gregy1403
14 years, 9 months ago
Hi

Installed MJ, done configuration .. opened subdomain via my Control Panel also entered in settings for smartphones (i.e. m.domain.com)

Now what next .. should i install anything into this directory/subdomain on my FTP, or shoudl i do any redirections in my hosting Control Panel?

stucked

Thank you
craig.reilly
14 years, 9 months ago
turn off subdomains unless you really need them. No real reason to have them. However, if you DO REALLY WANT THEM
1) Add the subdomains to your host and point them to the ROOT of your site instead of a subfolder.
2) Then in the Mobile Joomla Admin - turn the Subdomain on
3) When users go to www.mysite.org on an iPhone, they get redirected to your subdomain of choice iphone.mysite.org which points to the same directory. Hope this helps...
gregy1403
14 years, 9 months ago
gee (no subdomain).. works like a charm .. THANK YOU
rodsdesign
14 years, 1 month ago
craig.reilly wrote:

Re: How-to - Subdomain

turn off subdomains unless you really need them. No real reason to have them. However, if you DO REALLY WANT THEM
1) Add the subdomains to your host and point them to the ROOT of your site instead of a subfolder.
2) Then in the Mobile Joomla Admin - turn the Subdomain on
3) When users go to www.mysite.org on an iPhone, they get redirected to your subdomain of choice iphone.mysite.org which points to the same directory. Hope this helps...


I did the above... (thanks for the directions by the way)...
but I'm just getting redirected back and forth from the www to the iphone subdomain... - so it fails.
(Safari cannot open the page because too many redirects occured)

Host: hostgator.com
Main site: www.navigatetomorrow.com (Joomla v. 1.5.21)
iphone: iphone.navigatetomorrow.com

subdomain iphone points to the main directory

in mobilejoomla (v. 0.98)
Domain multisite - yes
Desktop URL - www.navigatetomorrow.com/
iphone redirect - yes
iphone redirect domain - iphone.navigatetomorrow.com

I would really appreciate help on this... I'd love to use it everywhere...

thanks!
dryabov
14 years, 1 month ago
MobileJoomla correctlty redirects www.navigatetomorrow.com to iphone.navigatetomorrow.com, but then iphone.navigatetomorrow.com is redirected to www.navigatetomorrow.com/index.php, and it's done NOT BY PHP (it's easy to check from response headers)! So, look at your htaccess, httpdconf, etc. to found reason for this redirect.
rodsdesign
14 years, 1 month ago
well... duh... of course

I had a redirect in my htaccess to force from non-www to www.

thanks for the quick response Denis!!

Rod
rodsdesign
14 years, 1 month ago
for anyone else interested in this... since having your site always go to www or no subdomain (either / or) is important (at least to google) - here's the htaccess code I used to allow for a subdomain like iphone - and yet when there's no subdomain - it goes to the www.

RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
 

I hope that helps someone - took me over an hour to find it lol...

Rod
NestorAcevedo
13 years, 11 months ago
i set a subdomain in byethost, but obviously it makes a folder with the subdomain name, so the all posts above doesn't work for me , because when i set a subdomain, automatically this points to the new folder, and cannot change this -free acount-, so, making "subdomain" would be possible adding a parked domain into "mysite.com" for instance?

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.