Welcome, Guest
Username Password: Remember me

How-to - Subdomain
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How-to - Subdomain

How-to - Subdomain 14 years, 9 months ago #116

  • gregy1403
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
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

How-to - Subdomain 14 years, 9 months ago #1246

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...

How-to - Subdomain 14 years, 9 months ago #1248

  • gregy1403
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
gee (no subdomain).. works like a charm .. THANK YOU

How-to - Subdomain 14 years, 1 month ago #2474

  • rodsdesign
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
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!

How-to - Subdomain 14 years, 1 month ago #2475

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

How-to - Subdomain 14 years, 1 month ago #2476

  • rodsdesign
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
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

How-to - Subdomain 14 years, 1 month ago #2477

  • rodsdesign
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
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
The following user(s) said Thank You: okie

How-to - Subdomain 13 years, 11 months ago #2836

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?
  • Page:
  • 1
Time to create page: 0.15 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.