Ciao a tutti,
negli ultimi giorni consultando gli strumenti per i webmaster offerti da Google ho notato che sono riportati numerosi "Errori di scansione". In effetti i link riportati rimandano a pagine che non esistono più.
Esempio:
Link riportato nel report con errore 404: .blogmotori.com/category/marche/volkswagen/
Link effettivo della categoria: .blogmotori.com/category/marca/volkswagen-marca
Per risolvere il problema ho implementato un redirect 301 nel file htaccess (Redirect 301 "vecchio indirizzo" "nuovo indirizzo") solo che il file, una volta inserito nel sito mi da errore.
Sapreste dirmi se è scritto correttamente?
Grazie!
Options +FollowSymLinks
RewriteEngine On
Tue regole
RewriteRule ^category/marche/mercedes/(.)$ /category/marca/mercedes-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/alfa-romeo/(.)$ /category/marca/alfa-romeo-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/ferrari/(.)$ /category/marca/ferrari-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/nissan/(.)$ /category/marca/nissan-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/honda/(.)$ /category/marca/honda-marca/$1 [R=301,NC,L]
RewriteRule ^category/speciali/mobilita-sostenibile/(.)$ /category/speciali/mobilita-sostenibile-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/kawasaki/(.)$ /category/marca/kawasaki-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/corvette/(.)$ /category/marca/corvette-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/volkswagen/(.)$ /category/marca/volkswagen-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/citroen/(.)$ /category/marca/citroen-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/suzuki/(.)$ /category/marca/suzuki-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/smart/(.)$ /category/marca/smart-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/audi/(.)$ /category/marca/audi-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/hummer/(.)$ /category/marca/hummer-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/bmw/(.)$ /category/marca/bmw-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/porsche/(.)$ /category/marca/porsche-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/peugeot/(.)$ /category/marca/peugeot-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/ducati/(.)$ /category/marca/ducati-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/aston-martin/(.)$ /category/marca/aston-martin-marca/$1 [R=301,NC,L]
RewriteRule ^category/speciali/navigatori-gps/(.)$ /category/speciali/navigatori-gps-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/land-rover/(.)$ /category/marca/land-rover-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/toyota/(.)$ /category/marca/toyota-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/volvo/(.)$ /category/marca/volvo-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/ford/(.)$ /category/marca/ford-marca/$1 [R=301,NC,L]
RewriteRule ^category/speciali/cinema-e-tv/(.)$ /category/speciali/cinema-e-tv-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/hyundai/(.)$ /category/marca/hyundai-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/jaguar/(.)$ /category/marca/jaguar-marca/$1 [R=301,NC,L]
RewriteRule ^category/speciali/ginevra-2007/(.)$ /category/speciali/ginevra-2007-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/dodge/(.)$ /category/marca/dodge-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/cadillac/(.)$ /category/marca/cadillac-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/saab/(.)$ /category/marca/saab-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/opel/(.)$ /category/marca/opel-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/fiat/(.)$ /category/marca/fiat-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/lamborghini/(.)$ /category/marca/lamborghini-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/mazda/(.)$ /category/marca/mazda-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/renault/(.)$ /category/marca/renault-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/yamaha/(.)$ /category/marca/yamaha-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/lancia/(.)$ /category/marca/lancia-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/de-lorean/(.)$ /category/marca/de-lorean-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/guzzi/(.)$ /category/marca/guzzi-marca/$1 [R=301,NC,L]
RewriteRule ^category/marche/koenigsegg/(.*)$ /category/marca/koenigsegg-marca/$1 [R=301,NC,L]
BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ ?
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
END WordPress