问题描述
我有点新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:
这是一个很好的教程应该帮助你得到你的头圆这个东西,第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缩短网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!