我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php-如何更改htaccess以对主页和帖子页面进行分类

I'm working on a php website . I heard we can change the htaccess to identify whether it is home page, post page or search page.

Currently I'm using the below details.

RewriteCond %{REQUEST_URI} ^/index\.(html|php)
RewriteRule ^(.*) /home.php

Where the Index.php gets the url and identifies whether it is home page , search page or url page.

Is there an easy way to do it?

Thanks a lot for your suggestions .

近期文章

  • PHP生成下载链接
  • 从MYSQL检索数据并保存XML
  • Importepub插件lucimoo moodle
  • php代码使用if else循环1 ...直到最后一个日期
  • mv composer.phar / usr / local / bin / composer mv:尝试覆盖'/ usr / local / bin / composer',覆盖模式0755(rwxr-xr-x)?
  • 什么是最安全的PHP文件上传方法,可以处理所有文件类型?
  • 如何在从xml转换为json时获取输出中的属性?
  • 获取viewCount的Youtube API仅适用于本地
  • 将数据从jstree插入数据库
  • 更新操作后,Yii2不会重定向到索引页面
  • 设置haproxy后,.htaccess规则不起作用
  • 在另一个php文件中使用joomla登录的用户数据
  • Symfony2:从HTTPS路由重定向到HTTP路由
  • 如何从prestashop Web服务获取json格式的数据
  • 如何通过URL登录symfony
  • 如何向Zend添加独立应用程序
  • MySql - 从开始到每天计数
  • 从jscript返回使用php anchor get href
  • 在CodeIgniter之外使用CodeIgniter 3会话
  • 从Database Result执行功能

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华