How can I redirect my wordpress shop page from. www.domain.com/shop to shop.domain.com.

Please help

Also my site has been adding deleted products to my customers orders.

They are not being charged for the deleted orders, but the orders showing up on their receipts is causing alot of confusion.

Thank you! enter image description here


You could modify the servers htaccess file. Try this:

 # This will redirect a subdomain to another domain
 RewriteEngine On
 RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$ [NC]
 RewriteRule ^(.*) http://shop.newdomain.com/$1 [L,R]

This should redirect anyone from the www. to the shop. domain.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.