从example.com/page.php?var=letters到example.com/letters缩短网址 [英] Shorten the URL from example.com/page.php?var=letters to example.com/letters

查看:269
本文介绍了从example.com/page.php?var=letters到example.com/letters缩短网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点新URL重写在.htaccess中,我试图做我自己以下一些教程。没有成功,虽然....

I'm kinda new to URL Rewriting in .htaccess , and I tried to do it myself following some tutorials. No success though ....

我想缩短 http://www.example.com/page.php?var=letters HTTP:// WWW。 example.com/letters 字母的只是一个例子)。

I want to shorten http://www.example.com/page.php?var=letters to http://www.example.com/letters (letters is only an example).

任何帮助是非常欢迎的。不能得到这个工作我自己。 :(

Any help is very welcomed. Can't get this done myself. :(

推荐答案

trig的答案应该让你和运行然而,我强烈建议你看看:

TRiG's answer should get you up and running however, I would strongly suggest you check out:

的.htaccess提示和技巧

这是一个很好的教程应该帮助你得到你的头圆这个东西,第2部分介绍了mod_rewrite。

It is an excellent tutorial which should help you get your head round this stuff, part 2 covers mod_rewrite.

这篇关于从example.com/page.php?var=letters到example.com/letters缩短网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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