×
Select Page

Many times we have a in CMS and eCommerce website to change the domain due to maintenance or other reason but the main headache is the sub URL (categories or collection) should be work as it is other wise we need to write the 301 URL redirect for each and every URL to not get the SEO errors.

This is tutorial will be help for the following CMS :

  1. WordPress development
  2. Joomla development
  3. Drupal development

There are eCommerce platform that get help from this:

  1. Magento development
  2. Opencart development
  3. WooCommerce
  4. Virtumart

So here is the simple and easy option that will work using the add the few lines in the htaccess file (if file not available create it .htaccess).

Append the following code in the file.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(?:www.)domain.com$ [NC]
RewriteRule ^ https://newdomain.com%{REQUEST_URI} [L,R=301]
%d bloggers like this: