· 9 years ago · Nov 21, 2016, 01:00 AM
1# BEGIN WordPress
2RewriteEngine On
3RewriteBase /
4RewriteRule ^index.php$ - [L]
5# uploaded files
6RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
7# add a trailing slash to /wp-admin
8RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
9RewriteCond %{REQUEST_FILENAME} -f [OR]
10RewriteCond %{REQUEST_FILENAME} -d
11RewriteRule ^ - [L]
12RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
13RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
14RewriteRule . index.php [L]
15# END WordPress
16
17<?php
18
19 define('WP_ALLOW_MULTISITE', true);
20
21// ** MySQL settings - You can get this info from your web host ** //
22/** The name of the database for WordPress */
23define('DB_NAME', 'XXX');
24
25/** MySQL database username */
26define('DB_USER', 'XXX');
27
28/** MySQL database password */
29define('DB_PASSWORD', 'XXX');
30
31/** MySQL hostname */
32define('DB_HOST', 'XXX');
33
34/** Database Charset to use in creating database tables. */
35define('DB_CHARSET', 'utf8');
36
37/** The Database Collate type. Don't change this if in doubt. */
38define('DB_COLLATE', '');
39
40/**#@+
41 * Authentication Unique Keys and Salts.
42 *
43 * Change these to different unique phrases!
44 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
45 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
46 *
47 * @since 2.6.0
48 */
49define('AUTH_KEY', XXX);
50define('SECURE_AUTH_KEY',XXX);
51define('LOGGED_IN_KEY',XXX);
52define('NONCE_KEY', XXX);
53define('AUTH_SALT', XXX);
54define('SECURE_AUTH_SALT', XXX);
55define('LOGGED_IN_SALT', XXX);
56define('NONCE_SALT', XXX);
57/**#@-*/
58
59/**
60 * WordPress Database Table prefix.
61 *
62 * You can have multiple installations in one database if you give each
63 * a unique prefix. Only numbers, letters, and underscores please!
64 */
65$table_prefix = 'XXX';
66
67/**
68 * For developers: WordPress debugging mode.
69 *
70 * Change this to true to enable the display of notices during development.
71 * It is strongly recommended that plugin and theme developers use WP_DEBUG
72 * in their development environments.
73 *
74 * For information on other constants that can be used for debugging,
75 * visit the Codex.
76 *
77 * @link https://codex.wordpress.org/Debugging_in_WordPress
78 */
79define('WP_DEBUG', false);
80
81
82define('MULTISITE', true);
83define('SUBDOMAIN_INSTALL', false);
84define('DOMAIN_CURRENT_SITE', 'mydomain.com');
85define('PATH_CURRENT_SITE', '/');
86define('SITE_ID_CURRENT_SITE', 1);
87define('BLOG_ID_CURRENT_SITE', 1);
88
89
90
91
92/* That's all, stop editing! Happy blogging. */
93
94/** Absolute path to the WordPress directory. */
95if ( !defined('ABSPATH') )
96 define('ABSPATH', dirname(__FILE__) . '/');
97
98/** Sets up WordPress vars and included files. */
99require_once(ABSPATH . 'wp-settings.php');
100
101define( 'WP_ALLOW_MULTISITE', true );
102
103define ('FS_METHOD', 'direct');
104?>