社区
Apache
帖子详情
Apache Rewrite 的小问题,在线等
efanlx
2010-01-26 03:01:20
我想将 http://www.a.com/plus/user/name/ 重写成 http://name.a.com 的二级域名
Apache Rewrite 该如何写???
...全文
64
2
打赏
收藏
Apache Rewrite 的小问题,在线等
我想将 http://www.a.com/plus/user/name/ 重写成 http://name.a.com 的二级域名 Apache Rewrite 该如何写???
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Kevinsh
2010-01-27
打赏
举报
回复
楼主,我有个类似的问题。期待中。
感觉你解决了下面的问题:
http://www.a.com/plus/user/name/好像不用定位到/index.
网页结构:
SiteRoot
|----Controller
|--- index controller
|--- main controller
|----Template
|--- index.tpl
|--- main.tpl
|--- index.php
|--- index action
|--- login action
|--- logout action
|--- main.php
|--- index action
|--- add action
|--- delete action
|--- list action
|--- index.phtml
环境:
Apache+PHP+mysql+Smarty+ZF
在IE中Index能打开,login和Logout Action都能执行
,现在的问题是在index.phtml中href中写"/main"或则
"/main/add"无法跳转到main.html页面,请问应该如何
写ZF的router?如何配置apache的RewiteRule?
目前的RewriteRule是:
RewriteEngine ON
RewriteCond %(REQUEST_FILENAME) -s [OR]
RewriteCond %(REQUEST_FILENAME) -l [OR]
RewriteCond %(REQUEST_FILENAME) -d
RewriteRule ^.*$ - [NC,L]
RewriteRule !".[js|ico|gif|jpg|png|css]$ index.php
如果在ZF中添加Router,应该如何写?
谢谢 QQ:624286399
efanlx
2010-01-27
打赏
举报
回复
顶上去,还没有解决,高手帮帮忙呀
GoFrame框架快速入门教程
GF(Go Frame)是一款模块... 并提供了Web服务开发的系列核心组件,如:Router、Cookie、Session、Middleware、服务注册、配置管理、模板引擎等等, 支持热重启、热更新、多域名、多端口、多服务、HTTPS、
Rewrite
等特性。
LAMP架构调优(九)——
Apache
Rewrite
功能实战
今天继续给大家介绍Linux运维的相关知识,本文主要内容是
Apache
的
Rewrite
功能实战。 一、
Apache
Rewrite
功能简介 二、
Apache
mod_
rewrite
模块检查 三、
Apache
Rewrite
功能实战配置 四、
Apache
Rewrite
重写规则简介
Apache
的
rewrite
详解
Apache
的
rewrite
模块,提供了一个基于规则的重写(
rewrite
,也许译为重构更为合适)引擎,来实时重写发送到
Apache
的请求URL。因功能极其强大,被称为URL重写的“瑞士军刀”。 这个模块使用一个基于正则表达式...
Apache
URL-
Rewrite
重写
一、
Rewrite
1、
Rewrite
规则简介
Rewrite
主要的功能就是实现URL的跳转,它的正则表达式是基于Perl语言,可基于服务级的...方法二:编译
apache
时以DSO模式安装
apache
,然后再利用源码和apxs来安装
rewrite
模块 针...
Apache
Rewrite
规则详解
1、
Rewrite
规则简介: Rewirte主要的功能就是实现URL的跳转,它的正则表达式是基于Perl语言。可基于服务器级的(httpd...方法有两种一种是编译
apache
的时候就直接安装
rewrite
模块,另一种是编译
apache
时以DSO模式安装apa
Apache
24,922
社区成员
16,548
社区内容
发帖
与我相关
我的任务
Apache
Web 开发 Apache
复制链接
扫一扫
分享
社区描述
Web 开发 Apache
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章