BT Panel Redirect Configuration Guide

BT Panel (also known as aaPanel internationally) lets you configure redirects through a point-and-click interface โ€” no need to write Nginx or Apache config by hand. That said, knowing where to find the redirect settings and how to troubleshoot when things go wrong is still essential.

Method 1: Visual redirect tool (recommended)

BT Panel has a built-in redirect feature inside the site settings.

Steps

1. Open site settings โ€” Log in to BT Panel, go to Website, find your site, and click Settings.

2. Find the Redirect tab โ€” In the settings dialog, click the Redirect tab.

3. Add a redirect rule โ€” Click Add Redirect and fill in:

Common scenarios

HTTP โ†’ HTTPS

The easiest way: go to the SSL tab and toggle Force HTTPS. BT Panel configures the redirect automatically.

non-www โ†’ www

Old domain โ†’ new domain

๐Ÿ’ก Under the hood

BT Panel's visual redirect tool writes Nginx or Apache config rules behind the scenes. If you're comfortable with config syntax, you can edit those files directly for more flexibility.

Method 2: Edit the config file directly

In site settings, click the Config tab to edit the Nginx config directly.

Nginx example

# Force HTTPS
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://$host$request_uri;
}

# Specific path redirect
server {
    listen 443 ssl http2;
    server_name example.com;
    location = /old-page {
        return 301 /new-page;
    }
}

Apache (.htaccess)

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

โš ๏ธ Don't mix methods

Don't use both the visual redirect tool and manual config edits for the same site โ€” they can conflict. Pick one approach and stick with it.

Troubleshooting

Redirect not taking effect

Redirect loop

Usually caused by duplicate rules โ€” e.g., both the visual tool and a manual config entry doing the same redirect. Remove one.

Check the logs

# Nginx access log
tail -f /www/wwwlogs/your-domain.log

# Nginx error log
tail -f /www/wwwlogs/your-domain.error.log

Test with curl

curl -I http://example.com
curl -IL http://example.com

Or use 301check.com to see the full redirect chain with all details.

Best practices