-
Happy holidays!!
Sorry that I am coming at such inadequate moment.I have the following redirect with Cloudflare, but I have to set up this in the haccess file now .
It’s only a redirect for the home page:
example.com redirects to example.com/es/
I saw your KB however this is a bit different, and I don’t want to mess up the live site. https://rankmath.com/kb/how-to-redirect-www-urls-to-non-www/
Should this work, or has to be a completely different thing?
1)RewriteEngine On RewriteCond %{HTTP_HOST} www.example.com RewriteRule (.*) https://example.com/es$1 [R=301,L]
OR
2)
Is the above redirect ok or it must have a slash after /es/RewriteEngine On RewriteCond %{HTTP_HOST} www.example.com RewriteRule (.*) https://example.com/es/$1 [R=301,L]
I will be very grateful if you could help!
Thanks
Irene
The ticket ‘Redirect WWW Version to Non-WWW Version’ is closed to new replies.