当前位置:网站首页>phpStudy设置301重定向
phpStudy设置301重定向
2022-06-23 05:06:00 【子蛟】
第一步:在 phpStudy 选项按钮中 - 配置文件中打开 -httpd-conf。然后搜索 #LoadModule rewrite_module modules/mod_rewrite.so 删除前面的#。
第二步:记事本打开网站根目录中 .htaccess 在任意位置加入以下代码:
RewriteEngine OnRewriteCond %{HTTP_HOST} ^369ok.cn [NC]
RewriteRule ^(.*)$ http://www.369ok.cn/$1 [L,R=301]
保存后,重启 Apache 即可
备注:如果 .htaccess 文件不存在,创建一个即可,如下:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^369ok.cn [NC]
RewriteRule ^(.*)$ http://www.369ok.cn/$1 [L,R=301]
</IfModule>
边栏推荐
猜你喜欢

Qt使用多线程编译项目的方法

bootstrap如何清除浮动的样式

Day_01 传智健康项目-项目概述和环境搭建

Detailed explanation of redis persistence, master-slave and sentry architecture

sklearn sklearn中classification_report&精确度/召回率/F1值

RF content learning

Day_09 传智健康项目-移动端开发-手机快速登录、权限控制

Day_05 传智健康项目-预约管理-预约设置

Day_ 11 smart communication health project - graphic report and poi Report

微软面试题:打印折纸的折痕
随机推荐
Smart port: how to realize intelligent port supervision based on the national standard gb28181 protocol easygbs?
Machine learning 3-ridge regression, Lasso, variable selection technique
Day_ 12 smart health project jasperreports
json转化为proto
记一次GLIB2.14升级GLIB2.18的记录以及其中的步骤原理
论文笔记: 多标签学习 LSML
去除防火墙和虚拟机对live555启动IP地址的影响
Day_01 传智健康项目-项目概述和环境搭建
SQL statement error caused by the same SQL table name and function name.
What is a PDCA cycle? How to integrate PDCA cycle and OKR
Efficient office of fintech (I): automatic generation of trust plan specification
Summary of business logic security ideas
Global attribute lang attribute
Laravel log channel 分组配置
Linked Storage
Day_ 11 smart communication health project - graphic report and poi Report
The softing datafeed OPC suite stores Siemens PLC data in an Oracle Database
Day_07 传智健康项目-Freemarker
Day_ 08 smart health project - mobile terminal development - physical examination appointment
【踩坑记录】数据库连接未关闭连接,释放资源的坑