What is Redirects in WP Ghost?

The Redirect Feature in WP Ghost is a powerful security and usability tool designed to control traffic flow to protected WordPress site areas.
Using these options, you can safeguard your website from hackers, improve user experience, and create logical navigation flows for different types of users.
Why is Redirects Important for Security?
WordPress websites are common targets for hackers, who often attempt to exploit default login paths such as /wp-admin
or /wp-login
. The Redirect Feature helps protect these sensitive areas by:
- Masking Default Paths: Prevents hackers from identifying the actual admin and login URLs.
- Triggering Error Messages: Allows you to display 404 or 403 HTML error messages, discouraging hacker bots by making it appear that the path doesn’t exist.
- Minimizing Security Risks: Prevents brute-force attacks by hiding the login entry points.
How To Use Redirects in WP Ghost?
Activate Safe Mode or Ghost Mode
Begin by activating Safe Mode or Ghost Mode to open the path customization process.
- Access your WordPress dashboard after installing and activating the WP Ghost plugin.
- Select Safe Mode or Ghost Mode. Safe Mode provides basic protection, while Ghost Mode offers more advanced security features.

Redirect Hidden Paths
You can configure redirects for hidden paths using the Redirect Hidden Paths feature in WP Ghost:
- Show 404 Error: Display a 404 error to make it appear as if the path does not exist, discouraging further hacking attempts.
- Trigger 403 Error: Use a 403 error to indicate forbidden access, reinforcing security.
Tip! If the default redirect options do not meet your needs, you can create a new page and assign it as the redirect destination.

Login Redirect URL & Logout Redirect URL
With WP Ghost, you can set custom login and logout redirects based on user roles. This ensures that users land on relevant pages immediately after logging in or out, enhancing both usability and security.
Why It Matters:
- Improved User Experience: Ensures users access the correct area quickly.
- Role-Specific Content: Guides users to pages designed for their role, avoiding confusion.
Examples:
- Customers: Redirect to their account or order history page.
- Subscribers: Redirect to a subscriber-specific landing page.
To setup the Login and Logout redirects, follow these steps:
- Input the desired URLs for login and logout redirections.

Redirect Logged Users to Dashboard
WP Ghost also allows you to automatically redirect already logged-in users to the admin dashboard if they revisit the login page. This prevents redundancy and enhances user convenience.
To activate logged users to the dashboard, follow these steps:

Why It Matters:
- Efficiency: Saves users from repeatedly entering login details.
- Security: Prevents multiple login attempts and possible security risks.
- Professional Workflow: Streamlines access to the admin area for site managers and editors.
Conclusion
The Redirect Feature in WP Ghost is a critical component for enhancing both security and usability on your WordPress site. Prioritize security while considering usability to ensure your WordPress site remains safe and user-friendly.