Eduardorph
Eduardorph

Reputation: 153

Change only the home URL in my WordPress site

I have a WordPress website and the home page is configured to be the latest posts

What I want is that only the homepage URL that is, e.g. www.test.com redirects to subdomain.test.com and when the user needs to visit the older homepage will only access through test.com/home.

I need this because we will start a campaign in a landing page (subdomain.test.com) today.

But this is only for a few days, it is not a permanent change. How can I achieve this?

Upvotes: 0

Views: 67

Answers (1)

Adittya Verma
Adittya Verma

Reputation: 289

you can create a new page in WP where you can redirect to your sub domain.

OR

you can do this to make some changes in .htaccess file

RedirectMatch 301 ^/$ http://newsite.com.in/

add this in .htaccess file

Upvotes: 1

Related Questions