Welcome, Guest
Username Password: Remember me

Ugh subdomain driving me nuts
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Ugh subdomain driving me nuts

Ugh subdomain driving me nuts 12 years, 8 months ago #7993

  • jasondhsd
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Alright my mobile joomla works fine if I access it from a mobile phone but it doesn't redirect to the subdomain just comes up as www.jrdtech.net.  If I type m.jrdtech.net it just changes back to www.jrdtech.net and displays the mobile page.   Now if I enable "domain (multisite) support the mobile version no longer displays in my mobile browser.

Here's the steps I've taken:
1. In cpanel created a subdomain 'm' with documentroot of /public_html Redirection "not redirected"
2. In mobile Joomla I used M for all the devices (hope thats alright to do?) and set Redirect to domain "yes"
3. Desktop URL www.jrdtech.net/
4.  According to the sticky I should have Domain (multisite) support set to 'Yes' so I set it to yes but as I mentioned about my mobile template loads without redirecting if I have it set to NO.

In my .htacess:
I have the following to redirect me from jrdtech.net to www.jrdtech.net
RewriteCond %{HTTP_HOST} !^www.jrdtech.net$ [NC]
RewriteRule ^(.*)$ http://www.jrdtech.net/$1 [R=301]
 


and at the bottom my htaccess file I have this I'm guessing cpanel put it there since I'm pretty sure joomla or myself didn't.

RewriteCond %{HTTP_REFERER} !^http://jrdtech.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://jrdtech.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://m.jrdtech.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://m.jrdtech.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://reseller.jrdtech.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://reseller.jrdtech.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jrdtech.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jrdtech.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.m.jrdtech.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.m.jrdtech.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.reseller.jrdtech.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.reseller.jrdtech.net$      [NC]
 


Someone a few months ago said my redirect should be
RewriteCond %{HTTP_HOST} ^jrdtech.net$ [NC]
RewriteRule ^(.*)$ www.jrdtech.net/$1 [R=301,L]

But when I use that and type in jrdtech.net without the www.  or with anything BUT www.jrdtech.net I get a redirection loop error.  Made sure all the mobile plugins were enabled as well. Any ideas on how to fix this? Thanks

EDIT: Oh and I'm using sh404sef if that makes a difference.
Last Edit: 12 years, 8 months ago by jasondhsd.

Re: Ugh subdomain driving me nuts 12 years, 8 months ago #7994

  • jasondhsd
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Ok been playing some more. I updated my version of mobile joomla to the latest version and changed the rewrite rules back.
RewriteCond %{HTTP_HOST} ^jrdtech.net$ [NC]
RewriteRule ^(.*)$ www.jrdtech.net/$1 [R=301,L]

Now m.jrdtech.net and www.jrdtech.net works but plain jrdtech.net results in a redirect loop. WTF?!

Re: Ugh subdomain driving me nuts 12 years, 8 months ago #7999

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
What do you have in URL parameter in Advanced tab of MJ settings page? It's the only parameter in MJ that may be related to the issue.

Re: Ugh subdomain driving me nuts 12 years, 8 months ago #8002

  • jasondhsd
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
What's it suppose to be. I tried every combination. jrdtech.net in both url and redirection, www.jrdtech.net in both, jrdtech.net in one and www.jrdtech.net in the other.

Re: Ugh subdomain driving me nuts 12 years, 8 months ago #8003

  • jasondhsd
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hmm ok this is very odd. I removed the redirect from .htaccess completely. Left the url and redirect under "domain" in the advanced tab blank and everything is working.  jrdtech.net redirects to www.jrdtech.net and my mobile is redirecting to m.jrdtech.net.   I don't understand, and I'd like too.
  • Page:
  • 1
Time to create page: 0.16 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.