2016-07-26 1 views
0

を使用してURLに多くのボタンがユーザが完全なポストを含んでいるall.phpにリダイレクトされますクリックするとお読みください。実際に、このは20%に変更 - 私は<strong>のindex.php</strong>ページ&はthat.whenにいくつかの記事を持ってきたのhtaccess

http://localhost/project/all.php?rm=How%20to%20create%20jQuery%20Popup

よう all.php lokks上のURLは私が-%20を変更したいです。とにかくhtaccessでこれを行うには がありますか?

答えて

0
RewriteEngine On 
RewriteBase/

# external redirect from actual URL to pretty one (remove query string) 
RewriteCond %{THE_REQUEST} \s/+content\.php\?page=([^\s&]+) [NC] 
RewriteRule^%1? [R=302,L,NE] 

# convert all space (%20) to hyphen 
RewriteRule "^(\S*) +(\S* .*)$" $1-$2 [N,NE] 
RewriteRule "^(\S*) (\S*)$" $1-$2 [L,R=302,NE] 

# rewrite rule to call actual PHP handler 
RewriteRule ^([^./]+)\.html$ content.php?page=$1 [L,QSA,NC] 
+0

私のページ名はどこにありますか? – Anonoymous

関連する問題