File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,16 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
4545 if [ ! -e .htaccess ]; then
4646 # NOTE: The "Indexes" option is disabled in the php:apache base image
4747 cat > .htaccess << -'EOF '
48+ # BEGIN WordPress
49+ <IfModule mod_rewrite.c>
4850 RewriteEngine On
4951 RewriteBase /
5052 RewriteRule ^index\.php$ - [L]
5153 RewriteCond %{REQUEST_FILENAME} !-f
5254 RewriteCond %{REQUEST_FILENAME} !-d
5355 RewriteRule . /index.php [L]
56+ </IfModule>
57+ # END WordPress
5458 EOF
5559 fi
5660fi
Original file line number Diff line number Diff line change @@ -45,12 +45,16 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
4545 if [ ! -e .htaccess ]; then
4646 # NOTE: The "Indexes" option is disabled in the php:apache base image
4747 cat > .htaccess << -'EOF '
48+ # BEGIN WordPress
49+ <IfModule mod_rewrite.c>
4850 RewriteEngine On
4951 RewriteBase /
5052 RewriteRule ^index\.php$ - [L]
5153 RewriteCond %{REQUEST_FILENAME} !-f
5254 RewriteCond %{REQUEST_FILENAME} !-d
5355 RewriteRule . /index.php [L]
56+ </IfModule>
57+ # END WordPress
5458 EOF
5559 fi
5660fi
Original file line number Diff line number Diff line change @@ -45,12 +45,16 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
4545 if [ ! -e .htaccess ]; then
4646 # NOTE: The "Indexes" option is disabled in the php:apache base image
4747 cat > .htaccess << -'EOF '
48+ # BEGIN WordPress
49+ <IfModule mod_rewrite.c>
4850 RewriteEngine On
4951 RewriteBase /
5052 RewriteRule ^index\.php$ - [L]
5153 RewriteCond %{REQUEST_FILENAME} !-f
5254 RewriteCond %{REQUEST_FILENAME} !-d
5355 RewriteRule . /index.php [L]
56+ </IfModule>
57+ # END WordPress
5458 EOF
5559 fi
5660fi
You can’t perform that action at this time.
0 commit comments