具有多个文件的URL重定向

时间:2017-06-23 15:53:31

标签: php .htaccess

RewriteEngine on
RewriteRule account$ account.php [Nc]
RewriteRule (.+)$ store.php [Nc]

当我访问http://localhost/project/account时,应将其重定向到account.php

如果我访问http://localhost/project/sun-glass,则应将其重定向到store.php

0 个答案:

没有答案