How to set up city or country base sub domain in Osclass

In the osclass development many times developers stuck with subdomain settings according to country or city. In this post, i have figure out the points for how to set up subdomains in Osclass website under root (public_html/) directory.

1. Login to your Cpanel
2. Find subdomain and create new
3. Type * on subdomain name input text field and hit Create button
4. Edit your config.php, find
define(‘WEB_PATH’, ‘‘);
and replace with
define(‘WEB_PATH’, ‘http://’.$_SERVER[‘HTTP_HOST’].’/’);
and save the config.php
Don’t use: define(‘COOKIE_DOMAIN’, ‘.domain.tld’); for upper 3.3 version
5. login to your administrative area, enable subdomain Settings > advanced > subdomain type and add hostname as ( without www.
6. Disable Enable friendly URLs under Show More > Settings > Permalinks
7.  That’s it.

If you really like this post. Please Comment or share with social buttons for others help. You can more read useful articles


Add a Comment

Your email address will not be published. Required fields are marked *