我正在尝试将WordPress博客与apache集成在一起,但无法这样做。以下是我的apache配置。假设我的网站是test.com,那么如果有人访问test.com/blog,那么它应该打开wordpress网站。请帮助我。
<virtualHost test.com:80>
ServerName www.test.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Alias /blog/ /var/www/test-wordpressblog
<Directory /var/www/test-wordpressblog>
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
</virtualHost>