5 thoughts on “Remove www From URL using .htaccess in Apache

  1. Thanks you for this helpful code… WordPress was killing me, sometimes it worked, sometimes not, until I found out, that it depended on the written url: with www bad (header already send error), without fine, so your code was exactly what fixed my prob ^^

  2. Hello Sir,

    I have a dynamic site, the url structure is abc.xyz.com/State/sitemap/deep-link-page.html

    So I want to drop the “sitemap” from the Url and the url structure should be

    Can anyone suggest me the htaccess code so that it would be helpful for me.

    Thanks in Advance

Leave a Reply to code Cancel reply

Your email address will not be published. Required fields are marked *