Reputation: 11
I'm trying to set up a permanent redirect from an old http page to an entirely new domain. The http site where the old page was is now https.
Example- I would like to Redirect this page: http://example.net/productpage/
To go to this: https://newwebsite.com/
I have found similar questions although the answers aren't working for me. Not personally come across this particular issue before. Currently, while working on redirects I have a 404 to homepage redirect plugin on the WP website. But the original http://example.net/productpage/ is in a printed document so not ideal.
After researching I have tried a couple of suggested methods to .htaccess under RewriteEngine On
RewriteRule ^productpage/$ https://newwebsite.com/ [R=301]
and also:
RewriteCond %{http_host} ^example.net$ RewriteRule ^productpage\$ https://newwebsite.com [R=301,L]
Basically, trying to get the old http page to direct users to another https website
Upvotes: 1
Views: 72
Reputation: 626
Try this in your .htaccess file
RewriteEngine On
Redirect /productpage https://newwebsite.com/
Upvotes: 0