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

Redirecting homepage to subdomain #190

Open
COOLak opened this issue Dec 18, 2018 · 1 comment
Open

Redirecting homepage to subdomain #190

COOLak opened this issue Dec 18, 2018 · 1 comment

Comments

@COOLak
Copy link
Contributor

COOLak commented Dec 18, 2018

I chose the subdomain approach for my site, which resulted in having to use custom routing. But then the "homepageRedirect" is not working properly. I set use_accept_language_header to true and added the following code to my routing:

 homepageredir:
    path:               /
    defaults:           { _controller: 'controller.frontend:homepageRedirect'}

It redirects homepage to mydomain.com/locale, while I need it to be redirected to locale.mydomain.com
Any suggestions? Thanks in advance.

@COOLak
Copy link
Contributor Author

COOLak commented Dec 18, 2018

Was able to solve this via .htaccess, but still wondering how to do this via this extention.

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

No branches or pull requests

1 participant