服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess 重写
  3. 如何将请求redirect到我的url到somefile.php而不是index.php
Intereting Posts
在Windows Server 2012上进行Web部署? 如何提高EC2 h1.4xlargenetworking接口的速度 什么是“友好”的方式重新启动IIS? PHP 7.0 FPM – 等待可用套接字镶边 如何确定Linux操作系统是否在虚拟硬件或物理硬件上? 委派注销权限? Xeon 5649在Supermicro X8DTE-F主板上没有POST 有没有一个表示旧IP的响应头? 为什么并行工作stream中的Get-Winevent需要使用PSRemoting? Linux红帽服务器上的内核恐慌 –checksum和–ignore-times选项之间的rsync差异 使用“PickupDirectoryFromIis”发送邮件需要什么权限? 如何挂载通过IPMI客户端的“虚拟存储”加载的ISO 当且仅当openvpn由systemd运行时,openvpn post-up脚本失败并且“操作不允许” HAProxy和Stunnel PCI合规性

如何将请求redirect到我的url到somefile.php而不是index.php

如何将所有对www.mysite.com的请求redirect到www.mysite.com/index_main.php,然后将www.mysite.com/index_main.php重写为www.mysite.com

  • 在openshift上放置wordpress htaccess的地方
  • 拒绝与Ubuntu / Apache2上特定主机名的连接
  • Apache不让我进来,但它应该
  • Apache服务器中的.docx问题
  • 如何插入一个“index.php”到每个使用.htaccess的url?

使用Apache DirectoryIndex指令来指定哪个或哪些文件应被视为目录索引。

例:

DirectoryIndex index_main.php 
  • 帮助用.htaccess重写一个URL
  • 如何强制.htaccess授权发生在SSL?
  • 为什么不这个.htaccess文件工作?
  • 是否有可能使.htaccess连接到数据库
  • 如何使用htaccess&apache重写/页面到/ xx / page?
  • 如何将apache中的裸域redirect到www
  • 阻止Apacheconfiguration文件中的GoogleBot
  • 将子文件夹从httpredirect到https
  • 每天更改htaccess密码
  • 许多htaccess文件,相同的IP限制

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy