可能重复:
using seo user friendly in php
我有3个PHP文件: index1.php、index2.php和index3.php
让我们假设我希望有以下SEO路径:
/seo-path1/
/seo-path2/
/seo-path3/我如何配置.htaccess文件,以便当请求来自这些子文件夹时,它重定向到它们各自的PHP?
/seo-path1/ ---> goes to index1.php
/seo-path2/ ---> goes to index2.php
/seo-path3/ ---> goes to index3.php提前谢谢。打招呼。何塞。
发布于 2011-09-15 13:53:45
这应该是你要找的:
RewriteEngine On
RewriteRule ^seo-path1/$ /index1.php
RewriteRule ^seo-path2/$ /index2.php
RewriteRule ^seo-path3/$ /index3.phphttps://stackoverflow.com/questions/7431928
复制相似问题