apache - Adding some extra rewrite code to existing main rewrite code -


मैं वर्तमान में यह मेरे .htaccess में है:

  RewriteEngine On RewriteCond% {REQUEST_URI} ^ (। *) // (। *) $ RewriteRule % 1 /% 2 [आर = 301, एल] RewriteRule ^, $ $ 2.php rewrite_params = $ 1 और (*।) (*।);? PAGE_URL = $ 2 RewriteCond% {QUERY_STRING} base64_encode * [या। (*।) ] RewriteCond% {QUERY_STRING} (& lt; |% 3 C)। * स्क्रिप्ट *। (& gt; |% 3E) [एनसी, या] RewriteCond% {QUERY_STRING} वैश्विक (= | [|% [0-9A-जेड] { 0,2}) [या] RewriteCond% {QUERY_STRING} _REQUEST (= | [|।% [0-9A-जेड] {0,2}) RewriteRule ^ (*) $ index.php [एफ, एल]   

मैं कुछ नए कोड को जोड़ना चाहता हूं जो फिर से लिखता है:

  स्टोर / कुछ-नाम /   

से:

  shop.php? Shop_id = some-name   

मैं अन्य रीरलाईट्स को प्रभावित किए बिना या अतिरिक्त को प्रभावित करने वाले अन्य पुनर्लेखनों को कैसे प्रभावित कर सकता हूं?

आप अपने नए नियम को अंत में जोड़ सकते हैं:

  RewriteEngine On RewriteCond% { REQUEST_URI} ^ (। *) // (। *) $ RewriteRule % 1 /% 2 [आर = 301, एल] RewriteRule ^, $ $ 2.php rewrite_params = $ 1 और (*।) (*।);?। PAGE_URL = $ 2 [एल, QSA] RewriteCond% {QUERY_STRING} base64_encode * ( । *) [या] RewriteCond% {QUERY_STRING} (& lt; |% 3 C) * स्क्रिप्ट * (& gt; |।।% 3E) [एनसी, या] RewriteCond% {QUERY_STRING} वैश्विक (= | [|% [0- 9 ए-जेड] {0,2}) [या] RewriteCond% {QUERY_STRING} _REQUEST (= | [|% [0-9A-Z]। {0,2}) RewriteRule ^ (*) $ index.php [एफ , एल] आरईआरईआरटीआर्यूएल ^ स्टोर / ([0- 9 ए-जेड .-] +) /? $ Shop.php? दुकान_आईड = $ 1 [एल, क्यूएसए, एनसी]    

Comments

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

sql - Return Function using Cursor -

sql server - How to use pivot in this table -