有关使用htaccess文件进行URL重写的帮助 [英] Help required about URL Rewriting using htaccess file
本文介绍了有关使用htaccess文件进行URL重写的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网址如下
product.php?productname = washing_machine
我想用.htaccess文件重写这个网址,如下所示
products / productname / wasthing_machine。 html
如何使用.htaccess执行此操作。请给我.htaccess的确切语法。
解决方案
在这里你可以找到一些有用的东西。
http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess。 HTML
I have url like below
product.php?productname=washing_machine
I want to rewrite this url using .htaccess file as under
products/productname/wasthing_machine.html
How can I do this using .htaccess. Please give me the exact syntax of .htaccess.
解决方案
Here you may find something useful on this.
http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html
这篇关于有关使用htaccess文件进行URL重写的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文