· 7 years ago · Nov 01, 2018, 09:22 AM
1RewriteEngine On
2RewriteBase /pages/
3RewriteRule ^index.php$ - [L]
4
5# add a trailing slash to /wp-admin
6RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
7
8RewriteCond %{REQUEST_FILENAME} -f [OR]
9RewriteCond %{REQUEST_FILENAME} -d
10RewriteRule ^ - [L]
11RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
12RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
13RewriteRule . index.php [L]
14
15# for files that end with ".py"
16<FilesMatch .css$>
17 SetEnv no-gzip 1
18</FilesMatch>
19
20/**
21 * The base configurations of the WordPress.
22 *
23 * This file has the following configurations: MySQL settings, Table Prefix,
24 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
25 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
26 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
27 *
28 * This file is used by the wp-config.php creation script during the
29 * installation. You don't have to use the web site, you can just copy this file
30 * to "wp-config.php" and fill in the values.
31 *
32 * @package WordPress
33 */
34
35// ** MySQL settings - You can get this info from your web host ** //
36/** The name of the database for WordPress */
37define('DB_NAME', 'xxxxx');
38
39/** MySQL database username */
40define('DB_USER', 'xxxxx');
41
42/** MySQL database password */
43define('DB_PASSWORD', 'xxxxx');
44
45/** MySQL hostname */
46define('DB_HOST', 'localhost');
47
48/** Database Charset to use in creating database tables. */
49define('DB_CHARSET', 'utf8');
50
51/** The Database Collate type. Don't change this if in doubt. */
52define('DB_COLLATE', '');
53
54/**#@+
55 * Authentication Unique Keys and Salts.
56 *
57 * Change these to different unique phrases!
58 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
59 * 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.
60 *
61 * @since 2.6.0
62 */
63define('AUTH_KEY', 'xxxxx');
64define('SECURE_AUTH_KEY', 'xxxxx');
65define('LOGGED_IN_KEY', 'xxxxx');
66define('NONCE_KEY', 'xxxxx');
67define('AUTH_SALT', 'xxxxx');
68define('SECURE_AUTH_SALT', 'xxxxx');
69define('LOGGED_IN_SALT', 'xxxxx');
70define('NONCE_SALT', 'xxxxx');
71
72/**#@-*/
73
74/**
75 * WordPress Database Table prefix.
76 *
77 * You can have multiple installations in one database if you give each a unique
78 * prefix. Only numbers, letters, and underscores please!
79 */
80$table_prefix = 'wp_';
81
82/**
83 * For developers: WordPress debugging mode.
84 *
85 * Change this to true to enable the display of notices during development.
86 * It is strongly recommended that plugin and theme developers use WP_DEBUG
87 * in their development environments.
88 */
89define('WP_DEBUG', false);
90
91/* That's all, stop editing! Happy blogging. */
92
93/* Multisite */
94define('WP_ALLOW_MULTISITE', true);
95define('MULTISITE', true);
96define('SUBDOMAIN_INSTALL', false);
97define('DOMAIN_CURRENT_SITE', 'www.example.com');
98define('PATH_CURRENT_SITE', '/pages/');
99define('SITE_ID_CURRENT_SITE', 1);
100define('BLOG_ID_CURRENT_SITE', 1);
101
102
103/** Absolute path to the WordPress directory. */
104if ( !defined('ABSPATH') )
105 define('ABSPATH', dirname(__FILE__) . '/');
106
107/** Sets up WordPress vars and included files
108
109define('CONCATENATE_SCRIPTS', false);
110
111/** Absolute path to the WordPress directory. */
112if ( !defined('ABSPATH') )
113 define('ABSPATH', dirname(__FILE__) . '/');