By Alex
/ in
chown www-data:www-data -R wordpress
<IfModule dir_module>
DirectoryIndex index.html index.php index.htm
Alias /blog "D:/JavaEE/projects/eclipse/4.3.2/gmem-blog"
<Directory D:/JavaEE/projects/eclipse/4.3.2/gmem-blog>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</IfModule>
如果仍然不行,看看Wordpress根目录是否存在.htaccess文件,如果不存在则手工创建:
# 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
UPDATE wp_posts SET post_content = replace( post_content, 'gmem.cc/blog','blog.gmem.cc') ; UPDATE wp_comments SET comment_content = replace(comment_content, 'gmem.cc/blog', 'blog.gmem.cc') ; UPDATE wp_comments SET comment_author_url = replace(comment_author_url, 'gmem.cc/blog', 'blog.gmem.cc') ;
Leave a Reply