Php WAMP本地环境的Wordpress设置
我已经下载了一个word press网站,我需要在前端工作。我遇到的问题是,除了主页之外的每个页面都显示我的根服务器/index.php 下载后,我:Php WAMP本地环境的Wordpress设置,php,wordpress,Php,Wordpress,我已经下载了一个word press网站,我需要在前端工作。我遇到的问题是,除了主页之外的每个页面都显示我的根服务器/index.php 下载后,我: 更新了siteurl和home的wp_选项 已将.htaccess url中的rewritebase更新为子文件夹的名称 还有什么我需要更新的吗 除了主页外,管理区的每个页面/帖子都能正常工作 编辑:Add.htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngin
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
#开始WordPress
重新启动发动机
重写BASE/wordpress/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
END2-通过移除一个/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END WordPress
#开始WordPress
重新启动发动机
重写BASE/wordpress/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则。index.php[L]
#结束WordPress
#开始WordPress
重新启动发动机
重写BASE/wordpress/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/wordpress/index.php[L]
#结束WordPress
遗憾的是,这没有什么区别。如果你输入index.php,会发生什么?也就是说,这会让你回到你的根目录吗?不,它会指引我:localhost/wordpress/进行一点额外的调试,并且它看起来像是.htaccess文件中的一个问题。添加了回答上述问题的内容奇怪,在wp管理设置-阅读中,您是否有静态主页设置?如果是这样,您可能需要重新分配并保存?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress