You could try redirecting in .htaccess
try
Put in the correct place
try
Code:
########## Begin - Redirect html to non htmlRewriteCond %{THE_REQUEST} \.htmlRewriteRule ^(.*)\.html$ /$1 [R=301,L]## If the above throws an HTTP 500 error, swap [R=301,L] with [R,L]########## End - Redirect html to non html
Put in the correct place
Code:
## Begin - Custom redirects## If you need to redirect some pages, or set a canonical non-www to# www redirect (or vice versa), place that code here. Ensure those# redirects use the correct RewriteRule syntax and the [R=301,L] flags.########### Begin - Redirect html to non htmlRewriteCond %{THE_REQUEST} \.htmlRewriteRule ^(.*)\.html$ /$1 [R=301,L]## If the above throws an HTTP 500 error, swap [R=301,L] with [R,L]########## End - Redirect html to non html
Statistics: Posted by Webdongle — Thu Sep 12, 2024 9:53 pm