Browse Source

localhost

windhamdavid 11 years ago
parent
commit
4491e17d33
4 changed files with 50 additions and 3 deletions
  1. 1 1
      .gitignore
  2. 5 2
      .htaccess
  3. 3 0
      index.php
  4. 41 0
      wp-config-sample.php

+ 1 - 1
.gitignore

@@ -10,7 +10,7 @@ wp-content/wp-cache-config.php
 wp-content/cache/
 
 wp-config.php
-local-config.php
+wp-local-config.php
 db-sync
 
 sitemap.xml

+ 5 - 2
.htaccess

@@ -1,7 +1,10 @@
+Options +FollowSymLinks
+
 <IfModule mod_rewrite.c>
 RewriteEngine On
-RewriteBase /
+RewriteBase /wp/
+RewriteRule ^index\.php$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . /index.php [L]
+RewriteRule . /wp/index.php [L]
 </IfModule>

+ 3 - 0
index.php

@@ -0,0 +1,3 @@
+<?php
+define( 'WP_USE_THEMES', true );
+require( './wp/wp-blog-header.php' );

+ 41 - 0
wp-config-sample.php

@@ -0,0 +1,41 @@
+<?php
+
+if ( file_exists( dirname( __FILE__ ) . '/wp-local-config.php' ) ) {
+    define( 'WP_LOCAL_DEV', true );
+    include( dirname( __FILE__ ) . '/wp-local-config.php' );
+} else {
+	define('DB_NAME', '');
+	define('DB_USER', '');
+	define('DB_PASSWORD', '');
+	define('DB_HOST', '127.0.0.1');
+	define('DB_CHARSET', 'utf8');
+	define('DB_COLLATE', '');
+}
+
+//define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
+//define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/app' );
+
+define('AUTH_KEY',         '');
+define('SECURE_AUTH_KEY',  '');
+define('LOGGED_IN_KEY',    '');
+define('NONCE_KEY',        '');
+define('AUTH_SALT',        '');
+define('SECURE_AUTH_SALT', '');
+define('LOGGED_IN_SALT',   '');
+define('NONCE_SALT',       '');
+
+$table_prefix  = 'wp_';
+
+define('WP_DEBUG', true);
+define( 'WP_DEBUG_DISPLAY', true );
+ini_set( 'display_errors', 1 );
+
+define('AUTOSAVE_INTERVAL', 720 );
+define('WP_POST_REVISIONS', 2);
+define('WP_MEMORY_LIMIT', '128M');
+
+if ( !defined('ABSPATH') )
+	define('ABSPATH', dirname(__FILE__) . '/wp/');
+require_once(ABSPATH . 'wp-settings.php');
+
+?>