http status code 404 - how to redirect a 404 page not found in OpenCart using .htaccess -


मेरे .htaccess पर:

मैंने एक 404 पेज about_us पृष्ठ के बारे में नीचे पंक्ति कोड का उपयोग करके पृष्ठ

  301 / about_us http://www.example.com/about-us  रीडायरेक्ट करें < / Pre> 

लेकिन जब मैंने लगभग-हमें पृष्ठ के लिए ब्राउज़र में लोड करने की कोशिश की तो इस पेज को

http://www.example.com/about-us पर पुनर्निर्देशित किया जाता है? _route_ = about_us लेकिन अभी भी पेज 404 त्रुटि में है

यहां मेरे .htaccess नियम है

  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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -