Can some of you advanced users please explain how to set up the sub-domain in steps. I'm using ver 3.4.2
So far I have set up the DNS wild card.
I'm running my own web server so the other steps should go easy.
I'm wanting to use for Sub-domain type "City based".
Thank you - X-MOD.
------------------------------------------------------------------------"UPDATE"------------------------------------------------------------------------------------------
I finally got it to work
The tutorial below assumes that you are using a hosting company that has mod-rewrite enabled and has given permission to the .htaccess file. As well that the OsClass instal was placed in the user root directory "www" and not www/some folder.
1st. Edit the config.php file and modify this
define('WEB_PATH', 'http://yourwebsite.com/');
To this
define('WEB_PATH', 'http://'.$_SERVER['HTTP_HOST'].'/');
on or close to line 25
2nd. Add the rewrite code
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
To the ".htaccess" file which should be located in the same folder that OsClass is stored in. If you don't have a .htaccess file then you will need to create one.
3rd. Go to Permlinks. Admin--> Settings--> Permalinks. Tick the "Enable friendly urls" check box and hit save. At this point the page will refresh and you should see a demonstration on how to add the rewrite code to your .htaccess file but if you have followed the steps above then you should not have to modify the .htaccess file again.
4th. Choose sub-domain type in the admin--> Settings--> Advanced. Remember to enter your domain-name into the Host box below and do not put www before your domain-name.
Now go test it out and see if all works. As a suggestion, if you have chosen the sub-domain type to be city based then add that city just before your domain-name in the address bar as city will be the sub-domain e.g. phoenix.mysite.com