Skip to content

Commit 862d97a

Browse files
committed
added wpcomments to .htaccess
1 parent 24bd522 commit 862d97a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

apache/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
5660
fi

docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
5660
fi

fpm/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
5660
fi

0 commit comments

Comments
 (0)