I have one problem about the redirecting I want to make redirect to example.com/product-bag.html to example.com/product-bag
I want to redirect but not affect the website’s keywords in Google.
What I Try
when I add the code below:
rewrite ^/ .html$ https://example.com permanent;
When restarting Nginx, I get an error saying I can’t save the file
I’m not sure if that’s the right thing to do or not. Thank you!
New contributor
Care Mac MacCare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.