Automattic / Automattic/studio

Feature Request: Server's rewrite rules htaccess/ nginx configs

Open
#660 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
517
Forks
95
Avg merge
1d 22h
Merged PRs (30d)
162

Description

### What

By using Apache or Nginx we usually have the chance to manage some redirections or reverse proxy routes to internal servers or whatever configs we need to do for the server and we usually do it with the htaccess or nginx config files.

Over here I cannot find the way to do it and to fully use this as our main environment for development we need to be able to handle those kind of things.

### Why

At so many projects that I work with, we need to customize somethings like the following (which the purpose is save storage space in the local environments using the images in production or staging if the image is not available in our locals):

```

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^wp-content/uploads/(.*)$ https://www.domain.com/wp-content/uploads/$1 [R=301,L]

```

### How

Create some feature that allow us to add those rules either in htaccess format or nginx format as a file in the root of the project or somehow in the StudioUI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.