http status code 404 - how to redirect a 404 page not found in OpenCart using .htaccess -
मेरे .htaccess पर:
मैंने एक 404 पेज about_us पृष्ठ के बारे में नीचे पंक्ति कोड का उपयोग करके पृष्ठ लेकिन जब मैंने लगभग-हमें पृष्ठ के लिए ब्राउज़र में लोड करने की कोशिश की तो इस पेज को यहां मेरे .htaccess नियम है उपयोग न करें पुराने ब्राउज़र कैश से बचने के लिए एक नया ब्राउज़र में परीक्षण करना सुनिश्चित करें
301 / about_us http://www.example.com/about-us रीडायरेक्ट करें < / Pre>
http://www.example.com/about-us पर पुनर्निर्देशित किया जाता है? _route_ = about_us लेकिन अभी भी पेज 404 त्रुटि में है
RewriteBase / #RewriteRule ^ sitemap.xml $ index.php ? मार्ग = फ़ीड / google_sitemap [एल] #RewriteRule ^ googlebase.xml $ index.php? मार्ग = फ़ीड / google_base [एल] RewriteRule ^ डाउनलोड /(.*) /index.php?route=error/not_found [एल] RewriteCond !% {REQUEST_FILENAME} -f RewriteCond% {REQUEST_FILENAME} -d RewriteCond% {REQUEST_URI} * \!।। (ico | gif | जेपीजी | jpeg | png | js | सीएसएस) RewriteRule ^ ([? ^] *) सूचकांक .php? _route _ = $ 1 [एल, क्यूएसए]
mod_rewrite नियमों के साथ रीडायरेक्ट नियम यह इस तरह से है:
RewriteBase / RewriteRule RewriteEngine चालू ^ about_us / $ http://www.example.com/about-us [एल, एन सी, आर = 301] #RewriteRule ^ sitemap.xml $ index.php? मार्ग = फ़ीड / google_sitemap [एल] #RewriteRule ^ googlebase.xml $ index.php? मार्ग = फ़ीड / google_base [एल] RewriteRule ^ डाउनलोड /(.*) /index.php?route= ! त्रुटि / not_found [एल] RewriteCond% {REQUEST_FILENAME} -f RewriteCond% {REQUEST_FILENAME} -d RewriteCond% {REQUEST_URI} * \!।। (ico | gif | जेपीजी | jpeg | png | js | सीएसएस) RewriteRule ^ ( [^?] *) Index.php? _route _ = $ 1 [एल, क्यूएसए]
Comments
Post a Comment