Search & security

Redirects

Rename a page, reorganise your site or move here from another builder without losing the visitors and search rankings the old addresses earned. pepita answers old addresses with real server redirects.

How redirects work

When you rename or remove a page, a redirect sends anyone who follows the old address to the new one. pepita answers with a real 301 or 302 from the server, so search engines learn that the page moved and nothing depends on JavaScript.

There are two ways to set them up, and they edit the same thing:

  • In the editor, open Settings → Redirects and add a row per old address.
  • Or keep a file called _redirects in the root of your site, one rule per line. It is the format other static hosts use, so rules you bring from elsewhere keep working.
Site settings, Redirects tab, with a button to add a rule. Site settings, Redirects tab, with a button to add a rule.
Settings → Redirects edits the same rules as the _redirects file.
_redirects
# old address   new address                        status
/about.html     /about/                            301
/blog/*         https://blog.example.com/:splat
The first rule moves one page for good. The second sends a whole folder to another site.

The rules

Old addressA path starting with /. It matches exactly, unless it ends in *, which matches everything after it.
New addressA path on your site or a full https:// address. :splat puts back whatever the * matched.
Status301, 302, 303, 307 or 308. Leave it out and you get 302.
OrderRules are read top to bottom and the first match wins. A query string such as ?utm_source=… is carried over to the new address.
How manyUp to 100 rules per site.
A redirect never hides a page that exists. It only answers where your site would otherwise say "not found", so a careless /* can't take down your home page. To redirect a page that still exists, delete the page too.
Use 302 unless the move is permanent. Browsers remember a 301, so if you later change where it points, people who already followed it keep going to the old target.

Redirects take effect when you publish. The preview inside the editor doesn't follow them, but a preview link uses its own copy of the rules, which makes it the safe place to try one first.

Moving a site to pepita

If your old site used different addresses, list each old address with its new one before you point your domain at pepita. Use 301 for these: the move is permanent, and it tells search engines to carry the old page's ranking over to the new one.

  1. Make a list of your old site's addresses. Its sitemap.xml is usually the quickest source.
  2. Add a 301 rule for every address that changed, in Settings → Redirects or in _redirects.
  3. Check a few rules on a preview link, then publish.
  4. Connect your custom domain.

The full technical contract is on the developer page, and your AI can read it with the get_building_guide tool.