Do I need to disable PHP redirects?
The short answer for most users is: No. You do not need to disable PHP redirects.
The default setting for Yoast SEO Premium is that PHP handles your redirects. This requires no work on your end, except for entering the redirects. If you only have a few redirects your server will be able to handle them quickly using PHP redirections. However, if you have a lot of redirects (the exact number depends on your server), they may slow PHP down. In that case, it can be useful to let your web server take care of the redirects.
How to change your redirect method
In the Yoast SEO Redirects menu, you can change the method of your redirects.
- In your WordPress Dashboard, go to Yoast SEO
- Go to Redirects
- Go to Redirect method
- Select the redirect method of your choice
PHP is the default option and works with most server configurations. Web Server primarily appears for non-Apache servers like NGINX.
- Click Save changes
- Resolve any notifications
In some cases, you will receive a notification regarding changes that need to be applied to your server to use the selection redirect method. Please make the requested changes to ensure redirects are handled correctly.