to (mod_rewrite rule) 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.


Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.