
redirect a link
How to Redirect a Link the Right Way for Direct Bookings
Posted on Jul 28, 2026

A renamed property page, a retired seasonal campaign, or an old promo link can send a guest to the wrong place just when you want that click to turn into a direct booking. For STR operators, how to redirect a link is not a generic web chore. It's how you keep search demand, UTM attribution, and repeat-guest traffic pointed at the booking page you control.
If you leave those old URLs hanging, you create dead ends, lose context, and hand momentum back to the OTA ecosystem you're trying to reduce. If you map them cleanly, the click still works, the guest still lands somewhere useful, and your website keeps doing its job after a rename, migration, or campaign refresh. For a broader direct-booking setup, it helps to pair redirects with the rest of your site strategy, like the guidance in why your rental website needs a stronger booking funnel.
Why Link Redirects Matter for Direct-Booking Sites
A redirect becomes necessary the moment you change a property URL, retire a winter landing page, or replace an old Airbnb-style campaign link with the direct-booking page you want guests to use. In STR, that happens all the time, especially when portfolios grow, property names change, or you consolidate location pages. The redirect is the handoff that keeps the click alive instead of letting it die in a 404.
What breaks when you skip it
Without a redirect, the guest hits a dead end. That's bad on its own, but the bigger problem is that the old URL can also keep showing up in search, in bookmarks, in email campaigns, and in shared messages from repeat guests. A clean redirect keeps the old URL working as a doorway to the new page instead of an abandoned entrance.
Practical rule: if the old page still has demand, preserve that demand with a redirect, don't force guests to start over.
This matters for more than housekeeping. Redirects are part of your direct-booking infrastructure because they protect the path from search, ads, and referrals into your booking engine. If you're comparing acquisition channels around a landing page or campaign, resources like choose between SEO and PPC are useful because redirects affect both, especially when a paid click or organic visit lands on an old URL.
Why this is portfolio work, not one-off tech cleanup
One redirect is easy. A portfolio of 20, 50, or 200 URLs is governance. You need a repeatable way to retire old pages, keep the right destination live, and make sure every old path points to the best replacement page, not just any page that happens to exist.
That's the core STR difference. You're not just fixing broken links, you're preserving direct-booking intent across property pages, city pages, campaign pages, and seasonal offers. A redirect strategy is part of staying independent from OTAs, because it keeps your own URLs authoritative when the site changes underneath them.
Choosing Between 301 and 302 Redirects
The first decision is simple. A 301 redirect is the permanent choice, and a 302 redirect is temporary forwarding. A 301 tells browsers and search engines that the old URL has moved for good, while a 302 says the old URL should come back later, even if it's out of service right now. That distinction is explicitly drawn in practical redirect guidance, and it matters because the destination is treated differently by browsers and search engines (wikiHow's redirect guide).
The decision rule I use on STR sites
If you renamed a property page, merged neighborhood pages, or retired a seasonal landing page, use a 301. If you're only sending traffic elsewhere for a short promo, a maintenance window, or a time-limited test, use a 302. That's the cleanest rule because it matches the actual lifecycle of the URL.
Use 301 when the new page is the permanent home. Use 302 only when the old URL is coming back.
The guest experience changes with that choice, too. A permanent move should feel stable, because your booking page, property details, and trust signals need to settle on one destination. A temporary move should feel like a short detour, not a new canonical home for the content.
The common STR mistake
The mistake I see most often is teams reaching for a 302 because it's faster to set up, then forgetting it exists. Months later, a URL that should have passed value permanently is still flagged as temporary. That's how you keep old paths in limbo.
If you're handling a direct-booking URL move, don't overthink it. Permanent page replacement means 301, temporary forwarding means 302. Pick that before you touch the server, plugin, or control panel, and the rest of the setup gets much easier.
Server-Side Methods for Apache and nginx
If you control the server, use a server-side redirect. That's the canonical setup for crawlability and clean transfer because the request resolves directly at the web layer instead of relying on the browser to interpret page code. For STR sites with real migration work, that's the version you want when a property page, city page, or campaign URL needs to move cleanly.
Apache .htaccess and nginx snippets
For Apache, the common pattern in .htaccess is a rewrite rule that points the old path to the new destination with a permanent status. It typically looks like a RewriteRule using the 301 flag and a final match flag so the request stops there. For a single page move, keep the target exact and avoid chaining it through extra internal hops.
For nginx, the equivalent is usually a return 301 inside the relevant server block. That's the cleanest option when you have access to the config and want the redirect handled before the request reaches the app layer. If you're moving a single path, the directive should send the old URI directly to the final URL, not to another intermediate page first.

What goes wrong in real migrations
The usual problems are predictable. Someone escapes the path incorrectly, creates a loop by redirecting the new URL back to the old one, or builds a chain through several stopovers because they copied an outdated snippet. Those mistakes are painful on rental sites because they can break both guest navigation and the crawl path to a bookable page.
A good rule is to keep the redirect single-hop and final-destination only. Don't point a retired property page to a generic homepage if the new property page exists. Don't hide the logic in a second redirect if you can go straight to the right page.
When the rule should not live in server code
If you don't have access to Apache or nginx, don't wait around for a developer. Use the platform path instead. A plugin or hosted redirect manager is better than leaving the old URL alive with no destination, especially when your team needs to move quickly after a listing rename or a campaign refresh.
WordPress Plugins and cPanel for Non-Developers
Most STR managers are not editing server files every week. They're inside WordPress, a host dashboard, or a control panel where they need a redirect they can see, edit, and test without a developer ticket. That's where plugin-based or panel-based redirect management earns its keep.
The WordPress and cPanel workflow
A documented WordPress workflow with Safe Redirect Manager is straightforward. You enter the redirect from path, enter the full destination URL or a relative path in redirect to, publish the rule, and then test the old URL in a browser to confirm it lands on the intended page (BU's WordPress redirect guide). That's enough for most property managers handling one-off URL retirements.
In cPanel, the Redirects tool under the Domains area gives you the no-code route. You choose the old URL, set the destination, select the redirect type, and save. The benefit is speed. The trade-off is governance, because these rules can get messy when a site redesign creates dozens of moving parts.
Hosted CMS options are similar
Hosted platforms usually follow the same pattern. HubSpot's URL redirect manager, for example, lives under Content > Domains & URLs > URL Redirects, and from there you can add a redirect, enter the original URL or path, enter the destination, and later edit, delete, export, or bulk edit redirects from the same place (HubSpot's redirect manager). That's the same operational logic you want on any hosted stack, even if the buttons are in a different place.
For WordPress sites that are getting cluttered after repeated updates, cleanup matters. A lightweight optimization pass like WordPress maintenance and performance cleanup can make redirect management easier because you're not digging through a bloated site every time a URL changes.
If your team can't explain where the redirect lives, it'll get lost during the next redesign.
The biggest caution is scale. Plugin-based redirects are easy to create and easy to forget, which is exactly how old paths pile up. Use them, but keep a redirect list and review it whenever you launch a new property page or retire an old one.
Cloudflare Page Rules and Hosted Stacks
A lot of vacation-rental brands sit behind Cloudflare, which changes the redirect layer completely. In that setup, you're not always touching the origin server at all. You're matching a URL pattern at the edge, then forwarding it with a 301 or 302 depending on whether the move is permanent or temporary.
When Cloudflare is the better layer
Cloudflare is a good fit for campaign links, cross-domain moves, and quick fixes where you want to catch the request before it reaches the origin. You define the pattern, choose Forwarding URL, pick the status code, and turn the rule on. That's especially useful when you're moving marketing URLs tied to a direct-booking push and you want the change to happen close to the visitor.
Hosted tools can do the same job in a more structured way. HubSpot's redirect screen lets you manage redirects as records, then edit, delete, export, and bulk edit them from the same admin surface. That's useful when a marketing or content team owns the URL library and needs visibility without server access.
The limit of edge rules
Edge redirects are not the same as structural site fixes. If you're restructuring a property portfolio, merging city pages, or cleaning up a major URL taxonomy change, origin-side redirects are usually the better fit because they belong closer to the actual site architecture. Edge rules are fast and flexible, but they're not a substitute for a well-planned site move.
Where last-resort methods fit
JavaScript redirects and meta refresh can work when you can't change the server or platform layer, but they're fallback tools. Use them sparingly for legacy pages or weird edge cases, not for your core direct-booking pages. They depend on the browser doing extra work before the guest sees the new location, which is not where you want your primary booking paths to live.
For campaigns that need attribution, tag the destination URL so you can measure the click you just moved. A redirect isn't just a technical action, it's also a tracking decision, especially when the booking source matters more than the raw visit count. If you're building that measurement discipline, what a UTM link does is worth reading alongside your redirect setup.
Last-Resort Methods and UTM Tracking on Redirects
When the site won't let you use a server, plugin, or hosted redirect manager, JavaScript and meta refresh are still options. They're just not the first choice. For STR operators, the key question is whether the guest is landing on the right direct-booking page fast enough, and whether the click is still measurable after the move.
Use fallback redirects only when you have to
A JavaScript redirect can push a visitor to another page after the browser runs the script. A meta refresh does something similar at the page level. Both can be acceptable for old email links, legacy pages, or thin pages you can't fully control, but they're weaker than a server-side redirect for core SEO and cleaner indexing.
The bigger issue is mapping. Don't use a generic fallback page just because it exists. Send the old property page to the new property page, send the retired promo page to the closest active replacement, and avoid a chain of redirects if you can keep it one hop.
Make the destination measurable
That's where UTM tagging helps. If you append tracking parameters to the destination URL, you can separate campaign traffic from organic traffic and see whether the redirect is still feeding direct-booking demand. Redirect tools that show hits per period, top referrers, and crawler vs. user traffic turn the redirect list into something you can review instead of a blind rule set. The analytics angle matters because redirects are part of performance marketing now, not just maintenance.
Good redirect mapping keeps the page relevant. Good tracking proves it still works.
For STR brands, that means you can retire a URL without losing the trail back to the booking engine. When a campaign link, city page, or property page gets renamed, the redirect should preserve context, not erase it.
Redirect Mapping, Testing, and Troubleshooting
The rule itself is only half the job. The hard work is mapping the old URL to the most relevant destination, then checking that the redirect behaves the way you think it does. If a renamed property page sends guests to the homepage, you've preserved a click but lost the intent behind it.
How to map redirects the right way
Start with equivalence. A retired property page should go to the new property page. A sunset campaign should go to the closest current campaign or booking page. A city page that gets merged should point to the most relevant replacement, not a generic hub page unless that really is the best match.
Then clean up the old path. Don't leave redirected URLs in the sitemap. That invites crawl waste and confusion about which page is supposed to rank. Keep the redirect direct, and avoid more than two hops because every extra stop adds friction.
What to test every time
Use a browser test first, because you're checking the guest experience. Then verify the HTTP behavior with a header check or a redirect checker so you know the status code is what you intended. If you have search console access, inspect the old URL and the target to confirm Google sees the move the way you do.
A simple troubleshooting table keeps the most common failures visible.
| Symptom | Likely Cause | Quick Fix |
|---|---|---|
| Guest lands on a 404 | Old URL has no rule | Add a redirect to the best matching live page |
| Redirect loops back and forth | Old and new URLs point at each other | Remove the second rule and keep one final destination |
| Wrong page loads | Generic destination chosen | Remap to the closest equivalent property or campaign page |
| Redirect seems ignored | Rule is in the wrong layer | Check whether the site needs origin, plugin, or edge handling |
| Old URL still appears in search tools | Sitemap or internal links still reference it | Remove the old URL and update internal links |
| Tracking looks incomplete | Destination URL wasn't tagged | Add UTM parameters to the final landing URL |
Review the redirect list regularly, not just during migrations. Quarterly audits are a sensible minimum for busy rental portfolios, especially if properties get renamed often or marketing pages are seasonal. If you want the redirect plumbing handled without babysitting every rule, that's the kind of operational layer hostAI is built to support for STR teams managing direct-booking growth.
If you want your old rental URLs, campaign links, and property pages to keep driving direct bookings instead of leaking into dead ends, hostAI can help you manage the website side of that work with less manual cleanup. It's a practical fit when your portfolio keeps changing and you need the redirect layer, the booking path, and the guest experience to stay aligned.