Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lajennylove opened this issue Nov 13, 2024 · 0 comments
Open

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

lajennylove opened this issue Nov 13, 2024 · 0 comments
Labels
[Type] Feature Request A shiny new thing

Comments

@lajennylove
Copy link

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):

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

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.

@lajennylove lajennylove added the [Type] Feature Request A shiny new thing label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Feature Request A shiny new thing
Projects
None yet
Development

No branches or pull requests

1 participant