How to change domain using htaccess file
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 suburl (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 :
- wordpress development
- Joomal development
- Drupal development
- Magento development
- Opencart development
- Woocommerce
- Virtumart
RewriteEngine On RewriteCond %{HTTP_HOST} ^(?:www\.)domain\.com$ [NC] RewriteRule ^ http://newdomain.com%{REQUEST_URI} [L,R=301]
Hi nice article. Please check my article - What is .htaccess file?
ReplyDelete