I need to display
www.defensionem.com
on my site. I tried re-directing through CPanel Redirection tool, and I redirected it.
But it has stuck in a loop.
I cleared cookies, did everything possible, so the issue lies in the server side.
I noticed the changes in the .htacess file before and after redirecting.
Here is the code.
RewriteCond %{HTTP_HOST} ^defensionem\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.defensionem\.com$
RewriteRule ^/?$ "http\:\/\/www\.defensionem\.com\/" [R=301,L]
Now how do I re-direct my website to
www.defensionem.com
Try this
RewriteEngine on
RewriteCond %{HTTP_HOST} ^defensionem.com [NC]
RewriteRule ^(.*)$ http://www.defensionem.com/$1 [L,R=301,NC]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.