Redirectdan keyin Yandex WebMasterda xatolik beryapti!!!

0 ovoz
26 marta ko‘rilgan
so‘radi 09 sentabr parmonov98 (809 bal)

Most likely, the site is not properly set up to return HTTP code 404 Not Found, which could negatively affect how the indexing bot indexes the site. Please set up the return of code 404 for requests for non-existent pages.

Yandex Web Master shgunaqa deyapti.htaccess redirect qilganimdan kegin.

.htaccess:

#<FilesMatch "robots.txt$"> 
#RewriteEngine off 
#</FilesMatch>
RewriteEngine On
AddDefaultCharset utf-8

#First rewrite any request to the wrong domain to use the correct one (here www.)
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/search.php$
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=302]

php_flag  display_errors        off
php_value error_log  /home/path/public_html/error.log

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ /?mainurl=$1 [QSA,L]

htaccess da change qilish kerakmi? yoki boshqa ways bormi? 

1 ta javob

0 ovoz
javob berdi 09 sentabr Sardor Dushamov (1,513 bal)

Agar biror sahifa topilmaganda nima qilishligini ko'rsatish kerak, yani 404 error berganda qaysi urlga redirect qilishni ko'rsatish kerak. Buning uchun .htaccess ga quyidagi ko'rinishda yozishiz kerak

http://example.com ga saytingizdan o'ziz xohlagan url ni ko'rsatishiz mumkin  

ErrorDocument 404 http://example.com/

izoh qoldirdi 09 sentabr parmonov98 (809 bal)
ko‘rsatildi 10 sentabr Sardor Dushamov
https qilib ko'rsatsa ham bo'ladimi?
izoh qoldirdi 10 sentabr Sardor Dushamov (1,513 bal)
ha https qilsangiz ham bo'ladi

Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.

Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin.

Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

Telegram kanal YordamUzRss

...