Skip to content

Commit

Permalink
// Custom code. } }
Browse files Browse the repository at this point in the history
// Pantheon - web only.
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) {
  // Only on dev web environment.
  if ($_SERVER['PANTHEON_ENVIRONMENT'] == 'dev') {
   // Custom code.
  }
}
  • Loading branch information
blueprintmrk authored Jul 10, 2019
1 parent 2b4e8f3 commit 0e48e26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
exit();
}
}
// Pantheon - web only.
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) {
// Only on live web environment.
if ($_SERVER['PANTHEON_ENVIRONMENT'] == 'live') {
// Custom code.
// Redirect subdomain to a specific path.
// Check if Drupal or WordPress is running via command line
if (isset($_ENV['PANTHEON_ENVIRONMENT']) && ($_SERVER['HTTP_HOST'] == 'blog.flexshopper.com') && (php_sapi_name() != "cli")) {
Expand Down

0 comments on commit 0e48e26

Please sign in to comment.