Osclass forums
Support forums => Themes => Modern => Topic started by: mandi007 on March 30, 2014, 02:33:14 pm
-
hi i tried to activate the sub domain functionality in my demo site bitemango.com, and after activating , i tested the sub domain for example chennai.bitemango.com and it worked. but i cant able to post any new add. if i fill out all the details and also filled the city as chennai......it is loading but again it shows the same item post form. please help me
and also after activating the subdomain, if i logged as admin and change some setting, it get saved and exit to main page rather than staying in the same page. i have to click back button in browser to check whether the settings are saved.
-
1st DNS Wildcard
*.example.net. A 127.0.0.1
2nd
Apache Wildcard( as i am on shared hosting i have created a sub domain with * .bitemango.com
3rd Changed in config.php
define('WEB_PATH', 'http://'.$_SERVER['HTTP_HOST'].'/path/to/Osclass/');
define('COOKIE_DOMAIN', '.domain.tld');
Karthik 4:02 am on October 26, 2013 Permalink | Reply
Works Perfectly, Check http://www.addque.com/ city based sub domains.
I done the first two steps long before, but not came across the WEB_PATH and cookies work, now I have done it and the sub domains works perfectly.
Karthik 4:11 am on October 26, 2013 Permalink | Reply
A small suggestion for Apache Wildcard, if you were in shared hosting where custom Apache configuration is not allowed, you can simply create a sub domain with *.yourdomain.com and point it to public_html. Simple.
Proof : my site’s Apache Wildcard is done by above said method and it works.
http://www.addque.com/
same thing was done by addque.com but his site is working perfectly..... am i missing anything except the above mentioned
-
i added the following line in config.php
define('WEB_PATH', 'http://'.$_SERVER['HTTP_HOST'].'/');
define('COOKIE_DOMAIN', '.domain.tld');
is it correct or i have done any wrong in it. please help...........
my website is bitemango.com
-
Subdomain works like charm in classified website http://adzhome.com (http://adzhome.com)
Thanks for the instruction