0

joomla 2.5 サイトがあり、 http://www.something.com/places? x=target があります。

次のような URL が必要です: http://www.something.com/places/target

これどうやってするの?

編集:

.htaccess では次のように動作します: RewriteRule ^places/(.*)$ http://www.something.com/places?x= $1 [L,P,nc]

ただし、スペースでは機能しません (「/places/tar get」は「/places?x=tar」にのみ移動します)。どうすれば修正できますか?

編集2:

RewriteRule ^places/([^\ ] )\ (. )$ http://www.something.com/places?x= $1\%20$2 [L,P,nc]

RewriteRule ^places/(.*)$ http://www.something.com/places?x= $1 [L,P,nc]

トリックをドット。皆さん、ありがとうございました!

4

1 に答える 1