Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2013-10-21 16:00:26

discuss4u
Member
Registered: 2013-03-06
Posts: 163

Is it possible to force the mobile version to a subdomain

Want to see if it is possible to make the mobile version on a subdomain like m.mydomain.com, for better CDN settings

It seems that it can be done with some small changes in index.php, for the lines and then point the subdomain to /mobile folder

if (VModule::enabled('mobile')) {
	$mobile	= (VBrowser::get('is_mobile')) ? TRUE : FALSE;
	if (($mobile && VF::cfg_item('module.mobile.redirect')) OR
	    $module == 'mobile') {
		require BASE_DIR.'/mobile/mobile.php';
		VMobile::process();
	}
}

But I am not sure what to change.

Offline

#2 2013-10-22 07:47:04

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Is it possible to force the mobile version to a subdomain

There are a lot of changes that need to be done, but it is possible. What you could do is setup a subdomain m.domain.com and install the script with the same database and then on mobile redirect to that url. You can then delete the non-mobile files.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB