php - htaccess Redirect to same file, but display different URL without having to change internal links? -


मेरे पास वर्तमान में मेरी वेबसाइट पर लिंक हैं: - http://example.com/products Php? Cat = X

मुझे लगता है कि एक बार लिंक के गंतव्य पर ले जाया जाता है, url कुछ ऐसा दिखाता है: - http://example.com/new

मेरे सर्वर पर फाइल एक ही फाइल है, लेकिन मुझे किसी भी लिंक को बदलने के बिना केवल यूआरएल को दिखाना चाहिए।

मैंने निम्नलिखित की कोशिश की, लेकिन इसे केवल उपयोगी यदि मैंने आंतरिक लिंक को स्पष्ट रूप से बदल दिया है: -

RewriteRule ^ new $ products.php? Cat = 10

<पूर्व> रीवाइटकॉन्ड% {QUERY_STRING} = बिल्ली = 10 पुनर्लेखन नियम ^ products.php $ new [R, L] RewriteRule ^ new $ products.php? Cat = 10 [ एल]

Comments

Popular posts from this blog

c# - TypeConverter in propertygrid only converts from string, not to -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -