Home >Backend Development >PHP Tutorial > htaccess重定向如何写

htaccess重定向如何写

WBOY
WBOYOriginal
2016-06-13 13:10:15971browse

htaccess重定向怎么写?
我想把 /index.php/article/det/id/(任何数字)
重定向到 /index.php/p/(数字)
该怎么写?

------解决方案--------------------
RewriteRule /index.php/p/([0-9]+) /index.php/article/det/id/$1

Statement:
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