Redirecting without www

  • Łukasz
  • Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #6662 by Łukasz
Redirecting without www was created by Łukasz
Can you also add the option of choosing a redirect without www.

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #6663 by Jose
Replied by Jose on topic Redirecting without www
Hi Łukasz,

Can you post an example, please?

Regards,
Jose

Please Log in or Create an account to join the conversation.

  • Łukasz
  • Topic Author
  • Visitor
  • Visitor
5 years 1 month ago #6664 by Łukasz
Replied by Łukasz on topic Redirecting without www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #6669 by Jose
Replied by Jose on topic Redirecting without www
Ok, got it. Will try to add it in the next version.

Regards,
Jose

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds