Laioutr frontends are built on Nuxt 3, which comes with a rich set of redirect options. We use these standard Nuxt features to cover common business needs like:
This page explains the types of redirects we support and when you would typically use each of them, without going into implementation details.
Server-side redirects happen before a page is rendered. The visitor’s browser is told to go to a different URL, and the original page never loads. This is ideal when you want:
In Nuxt 3, Laioutr uses two main ways to do server-side redirects.
What it is
Server routes are backend-style endpoints (for example /old-blog/*) that run on the server. They can:
Typical use cases
/old-category/shoes to move to /shop/shoes.What business users should know
What it is
Server middleware is logic that runs for every (or selected) request before Nuxt chooses which page to render. It can:
Typical use cases
What business users should know
Universal redirects work both on the server and in the browser, using Nuxt’s routing layer. They are useful when you want redirect rules that:
What it is
Route middleware runs whenever Nuxt navigates to a route—on the server for the first request and in the browser for internal navigation. It can:
Typical use cases
/account to /account/overview.What business users should know
What it is
Route rules are configuration entries that attach behaviour to specific URL patterns. Among other things, Nuxt route rules can describe:
In a Laioutr context, route rules let your team:
/blog/old/ redirect to /blog”).Typical use cases
/black-friday should redirect to the current campaign page./product?id=123 to /products/sneaker-123).What business users should know
Client-side redirects happen inside the browser after a page has started to load, usually from within Vue components. They rely on JavaScript being active and are generally not used for SEO-critical redirects.
What it is
Vue components can trigger redirects based on what happens on the page. For example:
Instead of returning a redirect from the server, the component tells the router to navigate to a different page.
Typical use cases
What business users should know
From a business perspective, you don’t need to know the Nuxt APIs in detail. It’s more important to pick the right capability for your scenario:
Laioutr’s frontend stack builds on Nuxt 3’s redirect features to cover all of these cases. You can configure, mix and match them so visitors always end up on the right page, whether they come from search, campaigns, or deep links inside the app.
PWA
Turn your Laioutr frontend into a Progressive Web App—installable on devices, with offline support and an app-like experience—using zero-config defaults and optional customization.
Server-Side Rendering (SSR) and Caching
How the Laioutr frontend uses SSR by default, how to make pages cacheable, how to enable CDN and HTTP caching, and how to override behaviour in your own modules for custom SSR and caching.