cancel
Showing results for 
Search instead for 
Did you mean: 

hyphen use in domain name , checkout not working Magento 2.4

SOLVED

hyphen use in domain name , checkout not working Magento 2.4

We have copied our main site on domain cpp-ca.com (domain name have '-') , when you will register on site and login
and go for checkout, You will redirect on account page.
We have tested same site by pointing other domain , subdomains , it working well with all, Only stop to work when hyphen '-' use in domain name.

Here , I have explained more, Kindly help us to solve this issue.

https://github.com/magento/magento2/issues/35794

1 ACCEPTED SOLUTION

Accepted Solutions

Re: hyphen use in domain name , checkout not working Magento 2.4

I think i found the solution. There seems issue with the SSL,
Magento again redirecting the https check on checkout while logged  customer do checkout

so it come under multiple redirect.
Cloudflare by default enabled the force ssl, so it already use https, and magento doing same,

due to that such situation happening

View solution in original post

6 REPLIES 6

Re: hyphen use in domain name , checkout not working Magento 2.4

Hello @sgdprofessfd95 

 

Can you please check with "URL Rewrites" under Marketing > Seo & Search > URL Rewrites ?
If there is any rule regarding checkout page then it may happens. Rest there is no restriction to use "-" with domain name.

 

It may help you!
Thanks

Problem solved? Click Accept as Solution!

Re: hyphen use in domain name , checkout not working Magento 2.4

There is no rule related to checkout there.
I have some other domain which i pointed and assign to this site , then it work fine ,
same database , same files etc.
Only issue start to come when use domain name with '-' .
You can try to checkout on site cpp-ca.com , you will see the issue

Re: hyphen use in domain name , checkout not working Magento 2.4

I have tested with one more domain cpp-us.com and find same issue,
without '-' in domain it work normal

Re: hyphen use in domain name , checkout not working Magento 2.4

Hello @sgdprofessfd95 

 

At my end, I can go to checkout page with domain you have shared. Find screenshot.
You are facing issue on this page right ?

checkout.png

 

Problem solved? Click Accept as Solution!

Re: hyphen use in domain name , checkout not working Magento 2.4

yes you are using guest checkout, I have mentioned regarding the registered user,
Please register as customer and login then try , so you will see issue there

Re: hyphen use in domain name , checkout not working Magento 2.4

I think i found the solution. There seems issue with the SSL,
Magento again redirecting the https check on checkout while logged  customer do checkout

so it come under multiple redirect.
Cloudflare by default enabled the force ssl, so it already use https, and magento doing same,

due to that such situation happening