怎样去掉wordpress伪静态链接中的index.php

2024年11月18日 19:41
有1个网友回答
网友(1):

win主机缘故
[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTP# Rules to ensure that normal content gets throughRewriteRule /sitemap.xml /sitemap.xml [L]RewriteRule /favicon.ico /favicon.ico [L]# For file-based wordpress content (i.e. theme), admin, etc.RewriteRule /wp-(.*) /wp-$1 [L]# For normal wordpress content, via index.phpRewriteRule ^/$ /index.php [L]RewriteRule /(.*) /index.php/$1 [L]新建文本复制面代码保存保存类型选择所文件并输入文件名称:httpd.ini
httpd.ini文件传WP程序所目录与index.php同目录内