WordPress.org

Ready to get started?Download WordPress

Forums

Redirect to new domain - woocommerce issue (1 post)

  1. snakeyman2
    Member
    Posted 1 year ago #

    Hi,

    I am experiencing a weird issue.

    I want to move my whole website to a new domain. So I did this:

    htacess:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^olddomain\.co\.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.olddomain\.co\.uk$
    RewriteRule ^/?$ "http\:\/\/www\.newdomain\.co\.uk\/" [R=301,L]

    wp-settings.php:
    define('WP_SITEURL', 'http://www.newdomain.co.uk');
    define('WP_HOME', 'http://www.newdomain.co.uk');

    and used Find and Replace plugin to change all mentions of the olddomain.

    However, I use Woocommerce plugin. Everything gets redirected properly, but woocommerce generated pages (products, shop homepage etc) - they just stay the same no matter what. How can I redirect that as well?

    Thank you for your help

Topic Closed

This topic has been closed to new replies.

About this Topic