2016-10-20 87 views

回答

0

我不知道爲什麼,你想用這個URL做什麼,但也許你可以得到url的第三部分,然後用你的編程語言重定向。

喜歡:

RewriteEngine On 
RewriteRule ^travel/([^/]*)/?(.*)$ /index.php?action=$1 [L] 

如果使用index.php這會給你compose-asdf-efgh,然後你可以做你想做什麼都與做然後重定向。

一些提示: 使用-比搜索引擎友好的URL使用_更好, 因爲這消息人士說:http://www.ecreativeim.com/blog/2011/03/seo-basics-hyphen-or-underscore-for-seo-urls/