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

Redirects for entire domain #87

Open
paavo opened this issue Dec 1, 2022 · 6 comments
Open

Redirects for entire domain #87

paavo opened this issue Dec 1, 2022 · 6 comments

Comments

@paavo
Copy link

paavo commented Dec 1, 2022

Is there a way to enable redirects for an entire domain?
For example we'd like to redirect "old" Domains or "dev-domains" to the production URI.

thanks for a quick hint @Sebobo

@Sebobo
Copy link
Member

Sebobo commented Dec 1, 2022

I would recommend using the web server. Easier to configure and better performance.

@paavo
Copy link
Author

paavo commented Dec 1, 2022

Yes @Sebobo, but we need to redirect Dev-Domains for sites who are published automatically.
So i prefer to have neos-way 🤔

@Sebobo
Copy link
Member

Sebobo commented Dec 1, 2022

I don't fully understand the workflow. Who has the dev domain and needs to be redirected?

@paavo
Copy link
Author

paavo commented Dec 2, 2022

I don't fully understand the workflow. Who has the dev domain and needs to be redirected?
Sorry for that @Sebobo

We have a multi-site Setup in one neos instance:

  • Every site is available at a development-domain (ex: siteaaa.devdomain.tld) for adding content
  • As soon as the sites production domain (ex. siteaaa.tld) is online, we automatically change the default domain (to siteaaa.tld) for this site and disable the dev domain (siteaaa.devdomain.tld).
  • In this case the dev domain (siteaaa.devdomain.tld) is no longer available and we'd like to setup and automatic redirect to the production domai (siteaaa.tld)

For this case it would be awesome to have a "Neos-Way" to redirect complete Domains (like this is possible in Typo3 for example) or to add redirects for everything /* in Neos Redirects.

@Sebobo
Copy link
Member

Sebobo commented Dec 2, 2022

Ok now I understand. This would be a bit of work as all related packages need to be adapted to the change.
Except if we configure this in the Settings.yaml. But if I understand you, you want to do this on the fly?

One reason we didn't want to do this yet, was that we wanted to prevent someone from killing their backend by setting up a dangerous redirect. The /neos/ path would always need to be excluded therefore.

@paavo
Copy link
Author

paavo commented Dec 2, 2022

A configuration in Settings.yaml looks like a good idea.

But if I understand you, you want to do this on the fly?
Yes. We trigger a Neos-Webhook who activates the Domain. This command could also create the "Domain-Redirect i'll guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants