[Thu Feb 14 17:11:03.534537 2019] [rewrite:trace3] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] strip per-dir prefix: /var/www/html/index.php -> index.php
[Thu Feb 14 17:11:03.534543 2019] [rewrite:trace3] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] applying pattern '^blog/$' to uri 'index.php'
[Thu Feb 14 17:11:03.534549 2019] [rewrite:trace3] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] strip per-dir prefix: /var/www/html/index.php -> index.php
[Thu Feb 14 17:11:03.534553 2019] [rewrite:trace3] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] applying pattern '^blog$' to uri 'index.php'
[Thu Feb 14 17:11:03.534557 2019] [rewrite:trace3] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] strip per-dir prefix: /var/www/html/index.php -> index.php
[Thu Feb 14 17:11:03.534561 2019] [rewrite:trace3] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] applying pattern '^index\\.php$' to uri 'index.php'
[Thu Feb 14 17:11:03.534566 2019] [rewrite:trace1] [pid 775] mod_rewrite.c(476): [client 192.168.56.1:55148] 192.168.56.1 - - [192.168.56.103/sid#7f5fe4c4a7c0][rid#7f5fe4bbaa70/initial/redir#1] [perdir /var/www/html/] pass through /var/www/html/index.php
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
LogLevel alert rewrite:trace6 alias:debug
ErrorDocument 404 /site/sitemap.xml
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php7.3-fpm.sock|fcgi://localhost/"
</FilesMatch>
DirectoryIndex index.php
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Options +FollowSymLinks
DirectorySlash Off
RewriteEngine On
RewriteRule ^blog/$ /blog [R=301,L]
RewriteRule ^blog$ /blog/index.php