当前位置:网站首页>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>
边栏推荐
- MySQL ON DUPLICATE KEY 和 PgSQL ON CONFLICT(主键) 处理主键冲突
- c#数据库报错问题大家帮我看看吧
- sklearn sklearn中的模型调参利器 gridSearchCV(网格搜索)
- Illuminate\Support\Collection 去重 unique 列表去重
- Haas 506 2.0 Tutoriel de développement - bibliothèque de composants avancés - modem. SMS (ne prend en charge que les versions supérieures à 2,2)
- Laravel log channel grouping configuration
- Illuminate\support\collection de duplication unique list de duplication
- qt creater搭建osgearth环境(osgQT MSVC2017)
- Day_ 08 smart health project - mobile terminal development - physical examination appointment
- bootstrap如何清除浮动的样式
猜你喜欢

项目_过滤器Filter解决中文乱码

中台库存中的实仓与虚仓的业务逻辑设计

如何查看本机IP

C # database reports errors. Let's have a look

Illustration Google V8 18: asynchronous programming (I): how does V8 implement micro tasks?

QT creator builds osgearth environment (osgqt msvc2017)

程序员的真实想法 | 每日趣闻

华为软件测试笔试真题之变态逻辑推理题

了解学习 JSX 的工作方式

Docker实战 -- 部署Redis集群与部署微服务项目
随机推荐
haas506 2.0开发教程-高级组件库-modem.sms(仅支持2.2以上版本)
Haas506 2.0 development tutorial -hota (only supports versions above 2.2)
Functions and basic structure of CPU
C language removes line breaks (or other characters) at the end of strings
Plot+seaborn+folium: a visual exploration of Abbey's rental housing data
Detailed explanation of redis persistence, master-slave and sentry architecture
JS to create an array (all elements are objects)
2020 smart power plant industry insight white paper
Sklearn classification in sklearn_ Report & accuracy / recall /f1 value
【接口自动化】软件测试涨薪核心技能、让薪资涨幅200%
业务逻辑安全思路总结
Linked Storage
Gridsearchcv (grid search), a model parameter adjuster in sklearn
[resolved] "the unity environment took too long to respond. make sure that: \n“
C语言去除字符串尾部的换行(或其他字符)
C # database reports errors. Let's have a look
什么是客户体验自动化?
数值计算方法 Chapter7. 计算矩阵的特征值和特征向量
华为软件测试笔试真题之变态逻辑推理题
haas506 2.0开发教程-高级组件库-modem.sim(仅支持2.2以上版本)