Permalink
Browse files

Update index.php

  • Loading branch information...
bueltge committed May 30, 2012
1 parent a9510c9 commit e3228268acaf8914c864d1dd0569d34342c085ef
Showing with 19 additions and 9 deletions.
  1. +19 −9 index.php
View
@@ -1,10 +1,20 @@
<?php
- if ( ! empty( $_SERVER['HTTPS'] ) && ( 'on' == $_SERVER['HTTPS'] ) ) {
- $uri = 'https://';
- } else {
- $uri = 'http://';
- }
- $uri .= $_SERVER['HTTP_HOST'];
-
- header( 'Location: ' . $uri . '/wpbeta/' );
- exit;
+/**
+// Stop most of WordPress from being loaded if we just want the basics.
+define( 'SHORTINIT', TRUE );
+/**/
+
+// WordPress view bootstrapper
+define( 'WP_USE_THEMES', TRUE );
+// Loads the WordPress Environment and Template
+require( './wpbeta/wp-blog-header.php' );
+
+if ( ! empty( $_SERVER['HTTPS'] ) && ( 'on' == $_SERVER['HTTPS'] ) ) {
+ $uri = 'https://';
+} else {
+ $uri = 'http://';
+}
+$uri .= $_SERVER['HTTP_HOST'];
+
+header( 'Location: ' . $uri . '/wpbeta/' );
+exit;

0 comments on commit e322826

Please sign in to comment.