How to redirect custom html site to wordpress?

Member

by deron , in category: Third Party Scripts , 2 months ago

How to redirect custom html site to wordpress?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by giovanny.lueilwitz , 2 months ago

@deron 

There are a few different ways to redirect a custom HTML site to WordPress. Here are a few options:

  1. Use a plugin: There are several plugins available that can help you easily redirect your custom HTML site to WordPress. Some popular options include Redirection and Yoast SEO.
  2. Edit your .htaccess file: If you're comfortable working with server configuration files, you can manually edit your .htaccess file to set up a redirect. You can use code like the following to redirect all traffic from your custom HTML site to your new WordPress site:


RewriteEngine On RewriteRule ^(.*)$ http://www.yournewwordpresssite.com/$1 [R=301,L]

  1. Use a server-side redirect: If you have access to your server's control panel, you could set up a server-side redirect to send all traffic from your custom HTML site to your new WordPress site.
  2. Update links and content: If you prefer not to set up a redirect, you can manually update all the links and content on your custom HTML site to point to your new WordPress site. This can be time-consuming, but it will ensure that all traffic is directed to your WordPress site.


Regardless of which method you choose, it's important to test the redirect thoroughly to make sure it's working correctly. You may also want to set up a backup of your custom HTML site before making any changes, just in case anything goes wrong.