当前位置:网站首页>Phpstudy set 301 redirection
Phpstudy set 301 redirection
2022-06-23 06:41:00 【Zi Jiao】
First step : stay phpStudy Option button - Open... In configuration file -httpd-conf. And then the search #LoadModule rewrite_module modules/mod_rewrite.so Delete the preceding #.
The second step : Notepad opens in the root directory of the web site .htaccess Add the following code anywhere :
RewriteEngine OnRewriteCond %{HTTP_HOST} ^369ok.cn [NC]
RewriteRule ^(.*)$ http://www.369ok.cn/$1 [L,R=301]
After the save , restart Apache that will do
remarks : If .htaccess file does not exist , Just create one , as follows :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^369ok.cn [NC]
RewriteRule ^(.*)$ http://www.369ok.cn/$1 [L,R=301]
</IfModule>
边栏推荐
- Smart port: how to realize intelligent port supervision based on the national standard gb28181 protocol easygbs?
- minio单节点部署 minio分布式部署 傻瓜式部署过程 (一)
- 下载oss文件并修改文件名
- How to maintain secure encryption of email communication with FDA?
- Golang regular regexp package use -04- use regular replacement (replaceall(), replaceallliteral(), replaceallfunc())
- 30 data visualization tips that can not be ignored
- Sklearn classification in sklearn_ Report & accuracy / recall /f1 value
- qt creater搭建osgearth环境(osgQT MSVC2017)
- golang正则regexp包使用-04-使用正则替换(ReplaceAll(),ReplaceAllLiteral(),ReplaceAllFunc())
- Day_ 02 smart communication health project - appointment management - inspection item management
猜你喜欢

Jour 04 projet de santé mentale - gestion des rendez - vous - gestion des forfaits

Day_ 01 smart communication health project - project overview and environmental construction

qt creater搭建osgearth环境(osgQT MSVC2017)

haas506 2.0开发教程-hota(仅支持2.2以上版本)

Basic RF theory (DB)

vs+qt项目转qt creator

haas506 2.0開發教程-高級組件庫-modem.sms(僅支持2.2以上版本)

业务逻辑安全思路总结

Day_04 傳智健康項目-預約管理-套餐管理

Day_ 11 smart communication health project - graphic report and poi Report
随机推荐
QT creator builds osgearth environment (osgqt msvc2017)
C language obtains second, millisecond, subtle and nanosecond timestamps
Topic35——34. 在排序数组中查找元素的第一个和最后一个位置
There are so many code comments! I laughed
30 data visualization tips that can not be ignored
Vs+qt project transferred to QT Creator
c#数据库报错问题大家帮我看看吧
聚焦智慧城市,华为携手中科星图共同开拓数字化新蓝海
项目_过滤器Filter解决中文乱码
English语法_副词 - ever / once
Xray linkage crawlergo automatic scanning pit climbing record
Link of Baidu URL Parameters? Recherche sur le chiffrement et le décryptage des paramètres d'URL (exemple de Code)
Machine learning artifact scikit learn minimalist tutorial
页面嵌入iframe 点击浏览器后退问题
Numerical calculation method chapter7 Calculating eigenvalues and eigenvectors of matrices
ffplay实现自定义输入流播放
Day_04 傳智健康項目-預約管理-套餐管理
解析创客教育中的造物原理
279.完全平方数
Measurement principle and thickness measurement mode of spectral confocal