使用htaccess中的mod_rewrite模块进行URL重写(一种混淆) [英] URL Rewriting using mod_rewrite module in htaccess (One Confusion)

查看:115
本文介绍了使用htaccess中的mod_rewrite模块进行URL重写(一种混淆)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个动态的网站.我网页的网址是这样的

I have a dynamic website. The URL of my web page is like this

http://www.mysite.com/movie.php?movieid=13



每部电影都有不同的名称.假设该电影的名称(具有movieid = 13)是Live Free Die Hard.

现在,我想使用mod_rewrite模块显示我的网页URL



Each Movie has a different name. Suppose the name of this movie (having movieid=13) is Live Free Die Hard.

Now, I want to show my web page URL using mod_rewrite Module like this

http://www.mysite.com/movies/13/Live-free-die-hard.html



这个模块可以吗?如果是,请指导我该怎么做.
如果无法使用此模块,还有其他方法可以实现目标吗?



Is it possible with this module? If yes than Please Guide me that How can I do that.
If it is not possible with this module, Is there any other way to achieve the target?

推荐答案

检查以下内容:

针对初学者的mod_rewrite [ url-rewriting-for-beginners/ [
Check these out:

mod_rewrite for beginners[^]

url-rewriting-for-beginners/[^]

hope it helps :)


这篇关于使用htaccess中的mod_rewrite模块进行URL重写(一种混淆)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆