以下是原问题,现已解决。修改成 /question/(:any)===/q(:any) 即可
_____________________________
/question/1
我想把这个变成/q1 如何写
/home/question/(:num)===/q(:num)
/home/explore/question-(:num)===/q(:num)
这两个都不行。
我所有的
/home/explore/===/explore/
/home/explore/guest===/guest
/home/explore/category-(:num)===/c(:num)
/question/(:num)===/q(:num)
/account/login/===/login/
/account/logout/===/logout/
/account/setting/(:any)/===/setting/(:any)/
.HTACCESS 填写的伪静态规则
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
阅读全文
收起全文