【发布时间】:2015-09-24 07:48:33
【问题描述】:
http:/example.com/word-123 --> http://example.com/word/123
我正在尝试以这种方式做,但没有任何反应
RewriteCond %{HTTP_HOST} ^([a-z]+)/([0-9]+)$
RewriteRule ^([a-z]+)-([0-9]+)$ [P]
或
RewriteRule http://prink-it.adit.it/([a-z]+)-([0-9]+) [P]
【问题讨论】:
标签: apache .htaccess url mod-rewrite