23490 Posts in 18996 Topics by 2878 members
Page: 1 2
|Go to End||Next >|
29 October 2011 at 12:00pm
We're setting up our web server so it has 2 sites on it - our desktop site in the web root, and a mobile site in the /mobile directory.
I am trying to setup the domain m.mysite.com for the mobile website. However, whenever I try to setup this subdomain, cPanel tries to redirect the subdomain to silverstripe_cache.
How can I fix this, so I can make the m. subdomain work correctly?
31 October 2011 at 9:12am
How do you know it redirects to silverstripe_cache? Did you check .htaccess?
31 October 2011 at 11:32am
Are you sure you have setup m.mysite.com correctly using cpanel? Depending on how you did it, adding a sub domain will act as a different site. You want to add a domain alias.
1 November 2011 at 5:06am
Do I really want a domain alias? Our mobile site is a completely separate site from the desktop version - not just a different stylesheet.
1 November 2011 at 9:46am
I'm assuming you are using the silverstripe mobile module to redirect to the mobile domain? If so it is one site with two different themes. Desktop and mobile.
Otherwise true you wouldn't want a alias, just setup two different hosting plans.
1 November 2011 at 10:40am Last edited: 1 November 2011 10:52am
The mobile module has a couple of options, a theme on the same site, or a different site. We're opting for the "different site" option. I've attached a screenshot of our mobile tab.
Two hosting plans isn't really what we want, as I don't think we can make a separate hosting account for a subdomain. I've put the whole mobile site into a "mobile" folder, and want to have the m. subdomain redirect there.
1 November 2011 at 11:13am
Does the two sites share common pages and content? That is why with theming you can have a different looking site, but same content etc.
Did you just copy entire silverstripe install folder into sub folder /mobile? If so this wont work as you would need two different hosting plans. Hence why mobile module and themes allows you to have two sites, but sharing same code and content etc.
1 November 2011 at 11:16am
It's all different code, page content, etc. The mobile site is a "light version" of our main site, and doesn't have all the same pages. They are very different sites.
Page: 1 2
|Go to Top||Next >|