vBulletin Search Engine Optimization
This is a discussion on Using config_vbseo.php in different environments - HOWTO? within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I have two vbulletin+ vbseo environments at the moment: Test environment: http://somedomain.dev/board This is a URL on my local ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Using config_vbseo.php in different environments - HOWTO?
Hi, I have two vbulletin+vbseo environments at the moment: Test environment: http://somedomain.dev/board This is a URL on my local server Production environment: http://somedomain.com/board My problem is the config_vbseo.php file is slightly different for the two environments. What can I do so I can use the same config_vbseo.php file for both environments? Token replacement and having two different copies of the file is not an option. My thoughts so far: 1) In config_vbseo.php, have a block that detects the current environment and sets the config as required for that environment, in psuedo code: if (environment == test-env) { set license key to correct value set custom doc root to correct value } else if (environment == prod-env) { set license key to correct value set custom doc root to correct value } Or 2) In config_vbseo.php there is a property to save settings to db. (see copied code below). Could the license key and custom doc root be stored in the db // ****** SAVE/RESTORE SETTINGS TO DB ****** // Set this variable to 1 to save (and restore) your settings from vB's (datastore) dB table define('VBSEO_CONFIG_INIT', '0'); |
|
#2
| ||||
| ||||
| Quote:
PHP Code: Quote:
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Howto prevent crawling of Private Forums | deb0 | Troubleshooting | 2 | 03-03-2007 12:10 AM |
| Sitemap HowTo? | sixtyseven | Deutsch | 14 | 03-25-2006 08:24 AM |
| Howto review MySQL queries used in scripts. | xb_ | General Discussion | 2 | 09-17-2005 12:38 AM |