2017-01-16 12 views
-1

内の誤ったパスを作成htaccessを、私はディレクトリ内に偽のサブディレクトリ・パスを作成したいパス

ORIGINAL URL:

http://localhost/abracadabra/?doce=1&travessura=9

CURRENT URL(MY htaccessを):

http://localhost/abracadabra/1/9

私が欲しい:

http://localhost/abracadabra/1/permalink/9

"パーマリンク"、私はこの偽のパスをしたい

CURRENT htaccessファイル:

のRewriteRule ^アブラカダブラ/([^ /] *)$ /abracadabra/index.php?doce=$1 [L]

のRewriteRule ^アブラカダブラ/([0-9] +)/([0-9] +)$ /abracadabra/index.php?doce=$1 & travessura = $ 2 [L]

+0

あなたの現在のhtaccessと試行を投稿してください。 –

+0

私のすべての試みをクリアしました; –

+0

すべての試行をクリアしましたか?あなたはそれを解決したという意味ですか? – Perumal

答えて

0
RewriteEngine On 
RewriteRule ^abracadabra/([^/]*)$ /abracadabra/index.php?doce=$1 [L] 
RewriteRule ^abracadabra/([0-9]+)/([0-9]+)$ /abracadabra/index.php?doce=$1&travessura=$2 [L] 
RewriteRule ^abracadabra/([0-9]+)/permalink/([0-9]+)$ /abracadabra/index.php?doce=$1&travessura=$2 [L] 

希望すると助かります!

関連する問題