---
title: How to
description: Step-by-step guides for common Cloudflare Pages tasks and configurations.
image: https://developers.cloudflare.com/dev-products-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/pages/llms.txt  
> Use this file to discover all available pages before exploring further.

[Skip to content](#%5Ftop) 

# How to

* [ Add a custom domain to a branch ](https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/)
* [ Add custom HTTP headers ](https://developers.cloudflare.com/pages/how-to/add-custom-http-headers/)
* [ Deploy a static WordPress site ](https://developers.cloudflare.com/pages/how-to/deploy-a-wordpress-site/)
* [ Enable Web Analytics ](https://developers.cloudflare.com/pages/how-to/web-analytics/)
* [ Enable Zaraz ](https://developers.cloudflare.com/pages/how-to/enable-zaraz/)
* [ Install private packages ](https://developers.cloudflare.com/pages/how-to/npm-private-registry/)
* [ Preview Local Projects with Cloudflare Tunnel ](https://developers.cloudflare.com/pages/how-to/preview-with-cloudflare-tunnel/)
* [ Redirecting \*.pages.dev to a Custom Domain ](https://developers.cloudflare.com/pages/how-to/redirect-to-custom-domain/)
* [ Redirecting www to domain apex ](https://developers.cloudflare.com/pages/how-to/www-redirect/)
* [ Refactor a Worker to a Pages Function ](https://developers.cloudflare.com/pages/how-to/refactor-a-worker-to-pages-functions/)
* [ Set build commands per branch ](https://developers.cloudflare.com/pages/how-to/build-commands-branches/)
* [ Use Direct Upload with continuous integration ](https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/)
* [ Use Pages Functions for A/B testing ](https://developers.cloudflare.com/pages/how-to/use-worker-for-ab-testing-in-pages/)

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/pages/","name":"Pages"}},{"@type":"ListItem","position":3,"item":{"@id":"/pages/how-to/","name":"How to"}}]}
```
