What is the full code that redirects all urls (including subfolders) without www
For example: http://www.abc.co.in redirects to http://abc.o.in
as well as http://www.abc.co.in/subfolder redirects http://abc.co.in/subfolder
What is the full code that redirects all urls (including subfolders) without www
For example: http://www.abc.co.in redirects to http://abc.o.in
as well as http://www.abc.co.in/subfolder redirects http://abc.co.in/subfolder
Have you tried Googling for your question? Here, let me.
First result:
RewriteCond %{HTTP_HOST} ^www\.abc\.co.in$ [NC]
RewriteRule ^(.*)$ http://abc.co.in/$1 [R=301,L]
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.