首页 > 服务器 > Web服务器 > 正文

XAMPP环境中启用伪静态方法

2024-09-01 13:53:47
字体:
来源:转载
供稿:网友

只需三步:

第一步,创建伪静态规则文件.htaccess,并放置于需要伪静态程序的安装根目录,如../htdocs/wordpress/ ;

第二步,修改../xampp/apache/conf/httpd.conf ,首先找到“LoadModule rewrite_module modules/mod_rewrite.so” 将其前面的#号去掉;

第三步:还是修改../xampp/apache/conf/httpd.conf ,找到:

AllowOverride none

Require all denied

将其改为:

Options FollowSymLinks

AllowOverride All

并于其后添加下面代码:

AllowOverride All

ps:第一步和第三步中的wordpress及其路径需依据自己实际做对应修改。

pss:.htaccess文件的内容请根据使用web程序的rewrite规则做修改。


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表