未找到.htaccess博客文件夹index.php文件
我将我的站点从静态迁移到wordpress,为了维护SEO,我在所有页面上保留了.htm扩展名,但是我在文件夹/博客中安装了WP,并在根htaccess中安装了以下内容未找到.htaccess博客文件夹index.php文件,php,wordpress,apache,.htaccess,Php,Wordpress,Apache,.htaccess,我将我的站点从静态迁移到wordpress,为了维护SEO,我在所有页面上保留了.htm扩展名,但是我在文件夹/博客中安装了WP,并在根htaccess中安装了以下内容 Options +FollowSymlinks -MultiViews RewriteEngine on RewriteCond %{REQUEST_URI} !^/+blog [NC] RewriteRule ^(.*)$ blog/$1 [L,NE] 几乎所有的东西都工作得很好,谷歌很高兴,因为所有的链接都没有改变,除了这
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/+blog [NC]
RewriteRule ^(.*)$ blog/$1 [L,NE]
几乎所有的东西都工作得很好,谷歌很高兴,因为所有的链接都没有改变,除了这个URL,它没有显示,而是返回一个404NotFound
/blog目录具有标准的wordpress访问权限
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
RewriteCond %{REQUEST_URI} !/index\.php [NC]
</IfModule>
及
现在你的网站在子文件夹??是吗?所有网站内容都在/blog/中,但提供给用户和谷歌的URL是[link]唯一没有结转的页面是旧的index.html现在你的网站在子文件夹中??是吗?所有的网站内容都在/blog/中,但提供给用户和谷歌的URL是[link]唯一没有结转的页面是旧的index.htm
RewriteRule ^(.+?)(/[^/]*|)$ $1/index.php$2 [L]
RewriteRule . /index.php [L]