hoho Posted August 27, 2015 Report Share Posted August 27, 2015 Sveiki, Pašlaik man ir izmantoti sekojoši Rewrite Rules : RewriteRule ^(ru|en|lv)$ index.php?lang=$1 [QSA,L] RewriteRule ^(ru|en|lv)/(.*/)?([a-zA-Z0-9_-]+)(/)$ index.php?lang=$1&area=$3 [QSA,L] Bet es gribu uztaisīt vienu izņēmumu Redirect 301 /en/test1/ /test1.php piemēram /en/test1/ es gribu uzlikt vienkārši redirektu uz /test1.php, bet pašlaik redirekts notiek uz: /test1.php?lang=en&area=test1 Kā uztaisīt izņēmumu, lai tieši šis links būtu bez "lang=en&area=test1" Quote Link to comment Share on other sites More sharing options...
waplet Posted August 27, 2015 Report Share Posted August 27, 2015 liec kā pirmo rūli. RewriteRule ^(ru|en|lv)/test1(/)? /test1.php [QSA, L] RewriteRule ^(ru|en|lv)$ index.php?lang=$1 [QSA,L] RewriteRule ^(ru|en|lv)/(.*/)?([a-zA-Z0-9_-]+)(/)$ index.php?lang=$1&area=$3 [QSA,L] Quote Link to comment Share on other sites More sharing options...
indoom Posted August 27, 2015 Report Share Posted August 27, 2015 un neizmanto QSA qsappend|QSA Appends any query string from the original request URL to any query string created in the rewrite target. Quote Link to comment Share on other sites More sharing options...
waplet Posted August 27, 2015 Report Share Posted August 27, 2015 un neizmanto QSA qsappend|QSA Appends any query string from the original request URL to any query string created in the rewrite target. bet varbūt viņam vajag /en/test1?dev=true , lai tomēr aiziet uz /test1.php?dev=true ? Quote Link to comment Share on other sites More sharing options...
indoom Posted August 28, 2015 Report Share Posted August 28, 2015 Tad var izmantot :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.