Redirect to (mod_rewrite rule)

Redirect to (mod_rewrite rule)


For redirecting to you need to made folllowing changes in your .htaccess file.

For this changes make sure that mod_rewrite module is available on your server.

RewriteEngine on

RewriteCond %{HTTP_HOST} ^domain\.com

RewriteRule ^(.*)$$1 [R=permanent,L]

Note: please replace with your domain name.

If you are looking to increase website visitors and improve sales then check out our all-in-one SEO tool, designed to make optimisation more effective with less efforts.