初学者URL重写的htaccess [英] Beginner Url Rewrite htaccess
本文介绍了初学者URL重写的htaccess的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是想重写所有的请求的:
I would simply like to rewrite all requests from:
http://example.com/products/product.cfm?id=product-name
到
http://example.com/products/product-name
其次,
http://example.com/category.cfm?id=some-category&sub=sub-category
到
http://example.com/some-category/sub-category
下面是我已经试过:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^products/$1 ^products/product.cfm?id=$1 [NC]
我敢肯定,没有任何意义,因为我真的不知道我在做什么。我希望有人能告诉我,我要去哪里错了,我就可以通过举例如下。
I'm sure that makes no sense, as I really have no idea what I am doing. I was hoping someone could show me where I'm going wrong so I could follow by example.
谢谢! 乔治
推荐答案
的 http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/
我不喜欢纯粹的链接的答案,但上面的链接是非常有用的对我说:]
I don't like pure "link" answers, but the link above is extremely helpful to me :]
这篇关于初学者URL重写的htaccess的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文