Skip to content

Commit dac7c13

Browse files
WordPress enables "pretty permalinks" by default as of 4.2.
1 parent 35abac9 commit dac7c13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

start.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ if [ ! -f /usr/share/nginx/www/wp-config.php ]; then
3030
unzip -o nginx-helper.*.zip -d /usr/share/nginx/www/wp-content/plugins
3131
chown -R www-data:www-data /usr/share/nginx/www/wp-content/plugins/nginx-helper
3232

33-
# Activate nginx plugin and set up pretty permalink structure once logged in
33+
# Activate nginx plugin once logged in
3434
cat << ENDL >> /usr/share/nginx/www/wp-config.php
3535
\$plugins = get_option( 'active_plugins' );
3636
if ( count( \$plugins ) === 0 ) {
3737
require_once(ABSPATH .'/wp-admin/includes/plugin.php');
38-
\$wp_rewrite->set_permalink_structure( '/%postname%/' );
3938
\$pluginsToActivate = array( 'nginx-helper/nginx-helper.php' );
4039
foreach ( \$pluginsToActivate as \$plugin ) {
4140
if ( !in_array( \$plugin, \$plugins ) ) {

0 commit comments

Comments
 (0)