To redirect a page in WordPress, you can follow these simple steps for an efficient solution:
Using a Plugin
- Install a Plugin: Navigate to your WordPress dashboard, go to ‘Plugins’ > ‘Add New’. Search for ‘Redirection’ (a popular choice) and install it.
- Setup Redirect: After activation, go to ‘Tools’ > ‘Redirection’. Input the URL of the page you want to redirect from in the ‘Source URL’ field, and the destination URL in the ‘Target URL’ field.
- Activate Redirect: Press ‘Add Redirect’. Your page will now automatically redirect visitors to the new destination.
Modifying .htaccess File (Advanced)
- Access .htaccess File: Using an FTP client or your hosting file manager, locate and edit the .htaccess file in your WordPress root directory.
- Add Redirect Code: Insert the line: Redirect 301 /old-page/ http://www.yoursite.com/new-page/, replacing /old-page/ with your current page path and the full URL following it with the destination address.
- Save Changes: Make sure to save the .htaccess file after editing. The redirect is now active.
Choose the method that best suits your comfort with WordPress and web technology. Using a plugin is recommended for beginners for its simplicity and ease of management.