Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
The Redirect addon in All in One SEO supports two different methods to handle redirects
You can select this by going to Redirects in the All in One SEO menu and then click on the Settings tab.
You’ll see the first setting is Redirect Method where you’ll see two choices – PHP and Web Server.
The PHP method is the simplest method and best for most users because it doesn’t need any server-side configuration. If you’re not familiar with configuring Apache or NGINX on your web server then this is the best method for you.
The Web Server method is faster than the PHP method but it does require experience configuring Apache or NGINX and it’s easy to mess up your site if you don’t know what you’re doing.
If you select the Web Server method then you’ll see a notice informing you to include a line in your web server configuration file.
If you’re using Apache as your web server, then the line should be included in the Apache virtual hosts file. You will then need to restart Apache.
If you’re using NGINX as your web server, then the line should be included in your nginx.conf file. You will then need to restart NGINX.
If you’re unsure what to do, contact a web server administrator or your hosting provider.
There are two limitations to using the Web Server method, these are:
- All in One SEO can’t count hits because these are handled by the web server and not PHP
- All in One SEO can’t display log redirects, so the Logs tab will not be displayed
Below the Redirect Methods you’ll see buttons for Export NGINX config file and Export .htaccess file. You can use these to export your active redirects so that you can import them into your nginx.conf or .htaccess files.
Check out more documentation on our Redirection Manager here.