.htaccess 可以不可以将静态的URL转到动态的?解决方案

WBOY
Release: 2016-06-13 10:37:36
Original
961 people have browsed it

.htaccess 可以不可以将静态的URL转到动态的?
试了几个规则都不行。
形如: /category-news/page-2.html 转向到 /?category-news/page-2.html



------解决方案--------------------
应该没任何问题,url重写并不区分是动态还是静态,只关心传递的 url内容 
至于规则,我不清楚,还没有学习过
------解决方案--------------------
我理解的意思是:需要吧一个静态地址转换成动态的,然后呢再把这个动态地址解析成某个地址?完全没必要吧,那就是两次定向?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!