dear community, we have a old web. web.domain.com. now we go online with the www.domain.com (from web.domain.com). some peoples uses now web.domain.com/site/index?1234. can anybody tells me how i can now automatic replace only the web.domain.com to www.domain.com without loosing the /site/index?1234 parameter through redirection function in ispconfig? i only want rewrite the web.domain.com to www.domain.com. that then the customer will be redirected directly to the new page thank you so much many greets iceget
You have several options to do that. The easiest ones: Create the web as domain.com and choose (*) as "auto subdomains". Then all subdomains (web, www, ...) will go to that website. Then you can also create a SEO redirect (second tab) from *.domain.com -> www.domain.com But as you mentioned, you 'only' want to redirect web.domain.com. This could be done by an alias domain. Create domain.com as the main domain. Use www.domain.com as the auto subdomain and use SEO redirect *.domain.com -> www.domain.com. Then create an aliasdomain web.domain.com -> www.domain.com
Thank you, i have tried both ways. first way i get only a certiifacte error. can you tell me what i have to activate on redirect type? have attached the both screenshot. thank you
Usually alias domains and auto subdomains are added to the certificate (when it is reissued). However, certbot/ispc does not support wildcard certificates. So you have to explicitly specify the domain as alias domain and issue a new certificate to include it. (disable letsencrypt, use "certbot remove" to remove cert, reenable letsencrypt for that web. Now it should have all specified domains validated)
Dear Steini, thank you. Okay i will try this. But what i have to check on alias domain on Redirect Type? Or what are the correct settings that all from sub.domain.com/TESTURL goes to www.domain.com/TESTURL and what you mean with "use certbot remove"? can you maybe tell me the correct settings? thank you so much
See manual section 4.6.1.4 (page 158). I would suggest to first try your setup with an unsused (sub)domain. When it is working as desired, use the settings for your production domain To remove a certificate, execute "certbot remove" on the CLI and and choose your domain. Then lets create the certificate again via ispc