Getting Started

Deployment Deployment - Diagnose Migrations Staging

Site Management

Backups Client Reporting Passwords Plugin Automation Plugin Management - Global Plugins & Themes - Diagnose Plugins & Themes - General Plugins & Themes - Git Plugins & Themes - Logs Must Install White Label WordPress Updates

Caching & Performance

Caching Caching - Blogs/Articles Caching - Diagnose Caching - Git Caching - WooCommerce Redis Optimize & Scale

Security

Security Security - Firewall

SMTP, CDN & DNS

SMTP SendGrid CDN CDN - AWS CDN - Cloudflare CDN - Diagnose Domains & DNS

Server & Tools

Analytics & Logs CRON Jobs Database Debug Tool Git Monitoring PHP Settings Redirects SEO Tools Server Errors sFTP SSL

Staq Billing

Staq Billing > Account Staq Billing > Client Staq Billing > Setup

Media

Media Media - Diagnose Media - Optimize

Accounts & Billing

Accounts & Billing

General

WordPress Hosting Website Diagnose Troubleshoot - Other

Server Redirects


On this page

    The Redirects function in the Staq Panel is the most efficient and secure way to handle server-side redirections. Unlike WordPress plugins, which can pose security risks if compromised, the Staq Redirects tool ensures safe, server-level redirects.

    With this tool, you can:

    • Export redirects via a CSV file
    • Import existing redirects into Staq via CSV

    The export functionality supports query strings, making it versatile and reliable for complex redirect requirements.

    Supported Redirect Types

    The Staq Redirects tool supports the following redirect types:

    • 301: Moved Permanently
    • 302: Moved Temporarily
    • 403: Forbidden
    • 404: Not Found
    • 444: No Response

    You can access the Redirects tool via the Staq Panel:

    Redirects Tool in Staq Panel

    Setting Up Redirects

    Importing or Adding Redirects

    To import redirects, download the CSV template available under the Redirects section in the Staq Panel. Alternatively, you can manually add entries by clicking +Add.

    Import or Add Redirects

    Redirecting Between Domains

    Say your primary domain is example.com, and you want to set up the following redirects:

    • example.com/payment → stripe.com/123
    • hello.com/about → example.com/about
    • test.com → example.com (domain alias)

    Step 1: Set Up Domains

    Before creating redirects, ensure all domains are added to the Staq Panel:

    • Navigate to the Domains section in the Staq Panel.

    Domains in Staq Panel

    • Click +Add Domain and enter the appropriate domain names.

    Add Domain

    Ensure that the DNS A records for these domains point to the correct server IP address. Without this step, the redirect functionality will not work properly.

    Step 2: Add Redirects

    1. Go to the Redirects section in the Staq Panel.
    2. Click +Add.
    3. In the popup modal, select the appropriate domain from the Origin Host list.
    4. For the From field, enter the path without the domain (e.g., /about).
    5. In the To field, enter the full URL (e.g., https://example.com/about).
    6. Click Save.

    Origin Host in Redirects

    Redirecting www to Root Domain or Vice Versa

    If your website needs to redirect from www.example.com to example.com (or vice versa):

    • Go to the Domains section in the Staq Panel and ensure a www entry exists.
    • If it doesn’t exist, add the www record and ensure it points to the correct server IP address.
    • Based on setting the domain as Primary, it’ll redirect all entries to the primary domain.
      • Based on this, you do not need to setup a redirect.
      • The A records must point to the Staq IP address
      • Staq will generate an SSL certificate for the non-primary domain

    WWW Domain Record Missing

    Redirects and Website Deletion

    If you delete a website in the Staq Panel, all associated redirects will also be deleted. Ensure that your redirects are backed up if you plan to remove a site.

    Conclusion

    The Staq Redirects tool provides a secure and efficient way to manage server-side redirects, supporting a variety of scenarios, including query strings and domain-level redirections. If you encounter any issues, contact Staq support for assistance.

    Need some help?

    We all do sometimes. Please reach out to our support team by dropping us a support ticket. We will respond fast.