How to redirect the website through .htaccess

In .htaccess you need to add the below content and say the file.

 

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yeswedo\.in
RewriteRule ^(.*)$ http://www.yeswedo.in$1 [R=permanent,L]

 

Note: Be sure that .htaccess should have execution permission

Comments are closed.