.htaccess Redirects 2026: 301 Rules, HTTPS & Bulk Redirects

.htaccess keeps redirects inside an Apache-hosted site; RedirHub manages domains, migration mappings, HTTPS and redirect operations independently from the web server.

Prices checked November 2026Monthly prices, before tax, monthly billing unless stated

We build RedirHub. We point out where .htaccess Redirects is the better buy, and how to check against your own setup.

The short answer

Choose RedirHub if

  • You want a shared system for dozens or hundreds of domains
  • A migration continues with 404 reporting and repair after launch
  • You need API/MCP/Terraform automation for SEO and IT
  • Hosted Edge for retired domains without their old servers; Integration Mode when a compatible live site must retain its own DNS and TLS; or Self-Hosted Edge when you run your own servers but need centrally managed TLS and redirects (Pro add-on from $219/month, plus hosting)

Choose .htaccess / Apache if

  • A live Apache site has a few stable redirects
  • Engineering already manages server configuration and certificates
  • Complex application-specific conditions are needed
  • The marginal cost of keeping rules on the current host is close to zero; Apache can automate ACME TLS through mod_md, and a well-run config-as-code workflow may not benefit from another service

Decide by the job you have#

A live Apache site needs a few stable redirects

.htaccess / Apache

The request already reaches Apache, so the redirect can stay with the site configuration instead of adding another service.

You only have shared-hosting access through .htaccess

.htaccess / Apache

.htaccess exists specifically for per-directory configuration when you do not control the main server configuration.

You are retiring domains and no longer want to operate their web servers

RedirHub

The redirects can live in a dedicated hosted layer with automatic HTTPS instead of depending on the old application stack.

A migration has hundreds or thousands of mappings that SEO or IT will keep reviewing

RedirHub

Bulk CSV import/export, redirect analytics and a shared redirect inventory fit the ongoing migration workflow.

Redirect behavior depends on application-specific request conditions

Apache

mod_rewrite and Apache expressions can keep conditional routing close to the live application and server configuration.

You want non-developers to change redirect destinations without editing server files

RedirHub

Redirects are managed as product records rather than Apache configuration changes.

Live Apache website needs SEO-managed redirects and 404 recovery without moving DNS

RedirHub Integration Mode, if an adapter is implemented

The existing web stack can serve centrally managed rules; Apache itself has no documented ready-made RedirHub plugin, so setup effort matters.

Many customer-owned domains need TLS on your own servers

RedirHub Self-Hosted Edge

Pro add-on centralizes certificate renewal and redirect rules in a Docker gateway while traffic stays on customer-operated infrastructure.

Post-migration 404s need alerting, triage and one-click redirect repair

RedirHub

Its 404 report records missing paths and referrers and can create targeted fixes; Apache requires the operator's own log and deployment workflow.

The biggest difference: server configuration vs redirect operations#

Apache does not have a standalone ".htaccess redirect product." Its mod_alias documentation[1] defines Redirect and RedirectMatch directives that can run in server, virtual-host, directory and .htaccess contexts. For simple redirects, Apache explicitly recommends these directives instead of reaching immediately for mod_rewrite.

That matters because a lot of .htaccess advice on the web starts with RewriteRule even when Apache itself says a simpler Redirect is the better tool. A basic Redirect preserves additional path information, keeps existing GET parameters, defaults to HTTP 302, and can return 301, 303 or other valid numeric HTTP status codes.

RedirHub starts from a managed control plane: redirects, domains, branded links, dynamic QR, permissions, analytics and 404 recovery become centrally managed records. Their serving location is a separate decision: the managed RedirHub edge, the existing site/CDN via Integration Mode, or a customer-operated Docker gateway with RedirHub-managed TLS. Current Product Facts[2] document API, remote MCP and Terraform management across relevant plans.

Our call

do not compare these as "free .htaccess versus paid RedirHub."

First decide who should own redirect rules and migration recovery, then decide who should operate the HTTPS serving infrastructure.

Where .htaccess and Apache are the stronger fit#

The site already runs on Apache#

If example.com already terminates on Apache and you need five redirects inside that same live site, keeping them in Apache is usually the first option to evaluate.

There is no redirect-specific software subscription to add. The rules can be reviewed with the rest of the site configuration, and the same server already receives the request.

This matters for a hostname that still serves a live application. DNS alone cannot route just /old-page to a separate hosted redirect provider while keeping the rest on the Apache site. But RedirHub does not require that move: its Integration Mode lets the existing server or application execute centrally managed rules without changing DNS when a compatible adapter is installed or implemented. WordPress and Caddy have documented official plugins; an Apache-only deployment would need a custom implementation of the open integration spec, not a claimed ready-made Apache module. Keeping the rules entirely in Apache remains the simpler choice when there are only a few stable paths.

Your hosting gives you .htaccess but not the main server config#

Apache's .htaccess tutorial[3] describes .htaccess as per-directory configuration for cases where the content owner does not control the main server configuration. That is common on managed and control-panel hosting.

There is an important constraint: .htaccess rules are only honored when the server permits them through AllowOverride or AllowOverrideList. Apache documents the default AllowOverride value as None, so .htaccess should not be treated as universally available.

If you do control the main Apache configuration, Apache recommends putting configuration there instead of in .htaccess.

The redirect logic is tightly coupled to the application#

Apache can do much more than one-to-one redirects. For more complex routing, mod_rewrite supports regular-expression matching, conditions and query-string manipulation.

That makes Apache a natural fit when redirect behavior depends on request headers, filesystem state, application paths or other server-side conditions that belong with the live application.

Apache's own guidance on when not to use mod_rewrite[4] is useful here: use simpler Redirect or RedirectMatch rules when they are enough, and reserve mod_rewrite for the cases that actually need its flexibility.

Where RedirHub is the stronger fit#

The redirect estate should outlive the old website#

With Apache, an old hostname still needs a server to terminate HTTPS and return the redirect. RedirHub's hosted edge can take over dedicated redirect domains, including their certificates, without preserving the old application. It has a published 25-domain Core starting point and separately expandable domain and link capacity. A basic whole-domain catch-all does not consume a managed-link slot. RedirHub pricing[5] shows those units explicitly.

Recovery after launch matters as much as launch day#

A migration can be technically complete while old URLs still receive real requests. A manually maintained Apache rule file and Apache access logs can diagnose those requests, but collecting, filtering and fixing them across dozens of domains requires a workflow the operator builds or adopts separately.

RedirHub's 404 tracking[2] collects missing URLs and their referring pages, visit counts and last-seen times; it can filter common bot/scanner noise, send email alerts and create a redirect from a reported broken URL in one click. Its documented reports cover hosted domains plus supported Integration Mode and Self-Hosted Edge reporting. This means the SEO team can find a broken post-launch link and repair it without first asking a sysadmin to investigate logs and ship an Apache config change.

Many domains, many maintainers, repeatable changes#

A few Apache virtual hosts are straightforward; managing a long-lived estate means tracking ownership, certificates, roles, previous destinations and deployment consistency. Apache can be automated with configuration management, Git and scripts, and a technically strong team may prefer that control. These are customer-built workflows, not a paid Apache SaaS plan.

RedirHub centralizes the inventory and offers CSV import/export with a preview of additions, changes and removals, bulk actions, a Management API, remote MCP and a Terraform provider[2]. Core includes three members; Pro adds unlimited members, destination health monitoring, a detailed audit log with revert, and more analytics history. Plan-specific controls matter: SSO is a separate $100/month Pro add-on, not a free Core feature.

When the server must remain yours#

RedirHub is not limited to moving traffic to a hosted redirect network. Integration Mode keeps redirect execution with the existing website/CDN, while Self-Hosted Edge runs a Docker TLS/redirect gateway ahead of the application on customer-operated servers. These options matter for live application hostnames and large certificate estates, not for every five-rule Apache site. The deployment section below details the actual control and cost boundaries.

Website migrations: the number of pages is not the number of rules#

A 500-page migration does not automatically require 500 redirects.

If every path stays the same when old.example.com moves to new.example.com, both Apache and RedirHub can handle the move with path-preserving logic rather than 500 individually managed mappings.

The harder case is a redesign where many old URLs move to different destinations. Apache can express those rules, and a developer-controlled configuration file can be a perfectly good system of record.

RedirHub becomes more attractive when the mapping set is imported from a spreadsheet, reviewed by SEO, adjusted after launch and kept around as an operational inventory. Its current import flow previews additions, updates and removals before writing them, and export downloads the workspace's links as CSV.

Our call

choose based on who owns the migration after launch.

If engineering owns the redirects as application configuration, Apache can be excellent. If SEO and IT will keep operating the mapping set, the management workflow becomes part of the product requirement.

Deployment and TLS: four realistic ways to serve the redirect#

An HTTPS redirect cannot happen until a server proves it controls the source hostname's certificate. The right architecture depends on whether the old hostname is retired, the application remains live, or the organization must keep visitor traffic on its own machines.

ModeWhere requests and HTTPS terminateWho manages rules / TLSKey prerequisite or limit
Apache .htaccess / virtual-host rulesExisting Apache serverOperator owns config and deployments; Apache mod_md can automate ACME certificate issuance/renewals when configuredApache host, module/configuration access; .htaccess permission via AllowOverride or AllowOverrideList
RedirHub Hosted EdgeRedirHub global edgeRedirHub serves redirect rules and HTTPSPoint the relevant hostname's DNS to RedirHub; best for retired/redirect-only domains
RedirHub Integration ModeExisting application, CMS or CDNRedirHub stores/syncs rules; the existing platform executes them and remains responsible for TLSCompatible integration; no DNS change; up to 50,000 rules per domain, with platform-dependent handling for advanced features
RedirHub Self-Hosted EdgeCustomer-operated Docker gateway ahead of the appGateway terminates TLS/serves redirects; RedirHub issues, renews and synchronizes certificates and rulesPro +$100/mo; Docker, public port 443, workspace token, upstream and DNS to customer's servers; up to 100 servers before Enterprise

Apache deserves credit here: mod_md[6] supports ACME certificate provisioning and renewal, with conditions around challenge reachability and configuration. It is inaccurate to say Apache can only use manually renewed certificates. The difference at scale is who operates certificate configuration, troubleshooting, patching and monitoring across hosts.

For a live Apache site, the Integration Mode route can preserve existing DNS and TLS while centrally managing redirects. RedirHub's Caddy plugin[7] is a documented official integration; its WordPress integration is documented too, while a bare Apache installation would need a custom compatible adapter based on the open spec. Some capabilities depend on the integration: there is a 50,000-rules-per-domain limit, wildcard domain connections are unsupported, certain HTML-page types need DNS connection, and paused/expired rules are not automatically applied. Test advanced matching, authentication and multi-destination behavior against the actual integration rather than promising full hosted parity.

Self-Hosted Edge[8] solves a different problem. A Docker gateway terminates HTTPS before passing live traffic to the application, can serve path redirects and password-protected links ahead of it, and can apply a catch-all only to application 404s. RedirHub centrally manages certificates across the customer's servers, but does not proxy visitor traffic through its hosted network. This is not a no-DNS-change integration: source domains must resolve to the customer's serving infrastructure and the gateway must accept HTTPS.

Our call

Keep Apache for small rules owned with the application.

Use hosted RedirHub to retire old infrastructure; Integration Mode to retain a compatible existing serving stack; or Self-Hosted Edge when you own the servers and need centrally managed TLS across many hostnames. The choice depends on traffic path, TLS responsibility, operational burden and total cost—not which product can emit a 301.

Pricing: free redirect syntax is not free infrastructure#

There is no separate license or subscription for Apache's redirect directives. When a team already runs Apache, five stable rules may have effectively zero incremental software cost. But new redirect-only domains still need hosting, TLS and someone to operate the setup. It would be misleading to invent a universal monthly Apache price or claim Apache imposes a SaaS-style rule cap.

The current RedirHub pricing[5] uses separate capacity units: each connected hostname counts as a domain (a root plus its same-destination www shares one slot), while migration mappings, branded links and dynamic QR codes consume managed-link capacity. A basic whole-domain redirect consumes no managed-link slot.

OptionTrue month-to-month priceIncluded / what the cost buys
Apache .htaccess / mod_aliasNo redirect-specific subscriptionRun redirects on Apache hosting you provide; hosting, certificate and operational costs vary
RedirHub Core hosted or Integration Mode$49/month25 connected domains, 2,500 managed links, bulk tools, API/MCP and central management; Integration Mode requires a working adapter
RedirHub Core at 100 domains$89/month$49 base + $40 domain capacity, still with 2,500 managed links unless link capacity is expanded separately
RedirHub Pro$119/month250 domains, 10,000 managed links, destination monitoring, more analytics history, audit capabilities and team controls
RedirHub Pro + Self-Hosted Edge$219/monthPro $119 + $100 add-on, 250 domains and up to 100 customer-operated servers; certificates and edge rules managed, hosting still yours

Managing 100+ domains? See what your current setup would cost on RedirHub.

Calculate your setup

Annual billing is separate: current published base pricing lists Core at $490/year and Pro at $1,190/year—two months free compared with 12 monthly payments. Do not mix those annual commitments into a monthly price comparison; add-on and higher-capacity totals depend on the configured tier.

Three buyer checks: (1) Five rules on one Apache site? Apache is probably the lowest-friction choice. (2) Retiring 25 old hostnames with shared visibility? RedirHub Core has a clear $49/month starting point, but add operational value rather than claiming that price is lower than a free directive. (3) Keeping 250 customer domains and certificates on your own servers? Self-Hosted Edge starts at $219/month plus your infrastructure, to be compared with the true cost of managing TLS and rules yourself. For many migration paths, size managed-link capacity separately; RedirHub's prepaid link/visit entitlements and Pro-only features can matter.

Can RedirHub replace .htaccess redirects on a live Apache site?#

Sometimes, but a managed rule record is not a substitute for every Apache directive. RedirHub can take over redirects on retired domains using its hosted edge. For a still-running application hostname, DNS cannot split requests by path; the site's current server must either keep serving them or receive a gateway in front of it.

Integration Mode offers a way to keep DNS and TLS unchanged while executing centrally managed rules inside a compatible existing stack. Caddy has a documented official open-source plugin[7], and RedirHub documents WordPress, Cloudflare Workers and Next.js integrations. It does not establish a ready-to-install Apache .htaccess plugin. Apache deployments would need custom integration work or can keep existing rules. The documented 50,000-rule-per-domain and per-platform advanced-feature behavior must be evaluated before migration.

Self-Hosted Edge takes a different route: it installs a Docker HTTPS gateway in front of the Apache application, serves managed redirects and proxies the remaining requests to Apache. This moves TLS termination to the gateway, requires DNS and network configuration for the customer's servers and starts at Pro + $100/month. It is not a seamless drop-in for all Apache virtual-host features, and its TLS/redirect policy should be tested before production cutover.

Apache-specific authentication, file handling, application rewrites, conditional environment expressions and other web-server behavior still belong in Apache or the application. If those are the main job, replacing .htaccess merely to use a SaaS dashboard adds work without enough benefit.

MCP, ChatGPT and AI-assisted redirect operations#

Apache documents a web-server configuration system, not a first-party SaaS MCP server or native ChatGPT redirect-management app. An engineer can build an AI- or script-driven deployment pipeline that changes Apache config and tests responses, but that is a custom operational implementation and needs its own access controls. Do not interpret the absence of an Apache MCP product as a defect in the underlying server.

RedirHub's published Product Facts[2] and MCP documentation[9] describe a remote MCP server with OAuth or workspace-scoped API tokens, setup for ChatGPT, Claude, Cursor and other MCP clients, and actions for domains, workspaces, links, QR codes, analytics and redirect-chain inspection. Pro adds change-history visibility. Documentation verifies availability, not an independent end-to-end test of these clients.

AI workflow decisionApache .htaccess / server configurationRedirHub MCP
Install and authenticateNo first-party MCP endpoint in reviewed Apache docs; requires a separately built agent/config-deployment bridge with server credentialsRemote MCP; RedirHub OAuth or scoped workspace API token
ClientsAny editor/agent integration would be user-built or separately sourced; none tested hereDocumented ChatGPT, Claude, Cursor and other MCP clients
Read, create and updateRules are lines in config; edits and deploys handled by the operator's tooling. No built-in workspace/domain/link/QR CRUD serviceDocumented workspace, member, domain, link and QR actions; analytics and chain inspection
Bulk delete/update safetyUses operator's own Git review, test and deployment controlsBulk MCP update/delete uses a dry run before confirmation
Permissions, quotas and verificationFile/server permissions and hosting constraints, no subscription plan; custom agent security not assessedWorkspace scoped; Core/Pro/Enterprise MCP, while plan capacity and Pro-only audit functions remain gated; documented, not live-tested

Our call

For a developer already happy with an Apache config-as-code pipeline, adding an MCP layer may solve little.

For SEO and operations teams that need a supported assistant to inspect and change an entire redirect portfolio across domains, RedirHub has the more explicitly documented workflow.

Integrations, API and infrastructure as code#

The comparison is native server capabilities versus managed cross-system operations, not a fabricated count of app-store logos.

Integration routeApache .htaccessRedirHub
Native redirect and TLSmod_alias Redirect/RedirectMatch, mod_rewrite and optional mod_md ACME TLS on ApacheHosted redirect/TLS edge; separate Integration Mode and Self-Hosted Edge architectures
CMS or web stackRuns natively on Apache; a hosted application's existing config controls rulesOfficial Caddy plugin with documented setup; RedirHub also documents a WordPress plugin (public WordPress.org availability not confirmed here); guided Cloudflare Workers/Next.js setup; open spec for custom integrations
API and automationShell, Git and infrastructure automation can edit/reload config; no first-party hosted Apache redirect REST management service establishedManagement API included on current plans; workspace-scoped tokens and CSV batch import/export
Infrastructure as codeGit/config-management deployment is an established operating pattern, but pipeline and idempotency are customer-ownedOfficial Terraform provider for domains, redirects, migration mappings, branded links and QR, with idempotency keys for create requests
Webhooks, CRM and automation buildersCustom scripts or separately installed components; no official cross-app parity established hereDo not infer a native Zapier/CRM/webhook catalog from API or MCP documentation; confirm any specific connector before choosing
Cost and setupNo SaaS subscription, but requires hosting access, server administration and a deployment/test processCore starts at $49/month; API/MCP are included, while self-hosted TLS and SSO are extra; integration adapters need implementation or installation

The Apache mod_rewrite flags reference[10] documents useful query transformations that can be more flexible than simple redirect presets. Conversely, the RedirHub API/Terraform evidence[2] is most valuable when redirect changes must be governed across many hostnames rather than tied to each Apache deployment. Do not claim either solution implements an unverified third-party connector or that all documented integration paths have been hands-on tested.

Want a shared system for dozens or hundreds of domains?

Keep a migration going with 404 reporting and repair after launch, plus API/MCP/Terraform automation for SEO and IT.

Start free trial

Frequently asked questions

Apache recommends Redirect or RedirectMatch from mod_alias for many simple redirects. Use mod_rewrite when you actually need its more complex matching and conditional behavior.

Yes. Apache's Redirect directive defaults to 302, supports permanent for 301 and seeother for 303, and can return other valid numeric HTTP status codes.

A simple Apache Redirect appends additional path information after the matched prefix and preserves existing GET parameters. More complex transformations can use mod_rewrite or other Apache configuration.

There is no separate .htaccess redirect subscription. You still need an Apache hosting environment and you own the infrastructure, TLS, testing and maintenance around it.

One common reason is server policy. Apache only honors .htaccess directives that are permitted through AllowOverride or AllowOverrideList; AllowOverride defaults to None.

Usually Apache deserves the first look. If the server already owns the hostname and the rules are stable, keeping them with the application avoids another system.

RedirHub's hosted edge is a good fit for retiring many redirect-only hostnames without keeping the old servers online, with centralized SSL, management and 404 reporting. Compare its domain/link capacity fee with your existing hosting and maintenance cost.

It depends on operating ownership. Apache works well when engineering version-controls the mappings and already operates the site. RedirHub is stronger when SEO or IT needs a shared mapping inventory, automated 404 discovery, email alerts and one-click corrections after launch—even when redirects execute via a compatible existing stack.

Yes, but not by routing individual URL paths through DNS alone. RedirHub Integration Mode can run rules on a compatible existing web stack without changing its DNS; a bare Apache server needs a custom adapter because no official ready-made Apache plugin is established. Alternatively, Self-Hosted Edge can act as a TLS and redirect gateway in front of Apache, requiring its own Docker and traffic-routing setup.

It can. Apache mod_md supports ACME issuance and renewal once properly configured. Someone still owns its hosting, ACME challenge setup, security updates and certificate operations; do not confuse a configured Apache certificate automation workflow with a managed external TLS service.

Yes. Its documented 404 report includes broken paths, frequency and referrers, with filters for scanner traffic, email alerts and a one-click path to creating the missing redirect. Supported hosted, integration and self-hosted deployment modes can report 404s, subject to actual integration settings.

Its approved Product Facts document a Management API, MCP server and official Terraform provider on Core and Pro. Workspace and plan permissions still apply. Apache can also be managed with scripts, Git or infrastructure tools, but those pipelines are maintained by the server operator rather than provided as a central SaaS workspace.

Trinayan Chakraborty

TC is the Operations Manager at RedirHub, leading the company’s operational strategy and execution to ensure reliable, scalable redirect infrastructure. He oversees internal processes, cross-team coordination, and platform readiness while supporting customers through complex redirect implementations. With a strong understanding of large-scale domain operations and real-world edge cases, TC plays a key role in aligning product and customer success to deliver stable, high-performance redirection solutions.

Sources · checked November 2026

  1. [1]Apache mod_alias
  2. [2]RedirHub Product Facts
  3. [3]Apache .htaccess tutorial
  4. [4]Apache when not to use mod_rewrite
  5. [5]RedirHub pricing
  6. [6]Apache mod_md ACME/TLS
  7. [7]RedirHub official Caddy plugin
  8. [8]RedirHub managed SSL / Self-Hosted Edge
  9. [9]RedirHub MCP
  10. [10]Apache mod_rewrite flags

See RedirHub’s product facts

Related comparisons