Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1513

Administration Joomla! 4.x • Re: Remove .html suffix and redirect

$
0
0
You could try redirecting in .htaccess
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



Viewing all articles
Browse latest Browse all 1513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>