regex - GET request htaccess redirection -


मुझे यूआरएल को

website.com/search.php?city= से रीडायरेक्ट करना होगा भारत और amp; कीवर्ड = लैपटॉप

से website.com/search/india/laptop

मैं htaccess के साथ ऐसा कैसे कर सकता हूँ

मेरे htaccess में वर्तमान कोड

  विकल्प + अनुवर्ती लिपियों पर पुनर्लेखन इंजन ^ ([a-z0- 9 _-] +) / ([a-z0- 9 _-] +) ( /)? $ search.php? city = $ 1 और कीवर्ड = $ 2    

आप इस रूट को अपने रूट में .htaccess फ़ाइल में उपयोग कर सकते हैं:

  विकल्प + अनुवर्ती लिपि - मल्टीमीक्स रीव्रेटइन्गइन ऑन रीराइटकॉन्ड% {THE_REQUEST} \ s / + खोज \ .php \? city = ([^ & amp; ] +) और कीवर्ड = ([^ \ s & amp;] +) [एनसी] रीराइरेरल ^ / सर्च /% 1 /% 2? [आर = 301, एल, एनई] रीव्रेट नियम ^ खोज / ([\ w -] +) / ([\ w -] +) /? $ /search.php?city=$1&keyword=$2 [एल, क्यूएसए ]    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -