Modifying Default Website Template and not redirected to /cgi-sys/defaultwebpage.cgi
Hello,
I am interested to know how to build an page like GoDaddy, when the customer order a domain name, the GoDaddy register it and leave their Default Domain Nameservers and if you check after some minutes, you will see the message : This web page is parked for FREE etc. ( as attached ).
Now, i have idea how to do that, to leave my nameservers and to modify the Default Website Template on Web Template Editor.
But i dont want that when the user clicks domain.com automatically redirect to the /cgi-sys/defaultwebpage.cgi but just domain.com with default template that i want to build. Like GoDaddy.
Can you help me ?
Thank you.
-
Those templates are for sceenarios where the dns doesn't point to you or a website has been moved. What you want is to create your page and put it in the /root/cpanel3-skel directory. Docs are here: Skeleton Directory - Version 78 Documentation - cPanel Documentation 0 -
No. If there is no account then you use the templates you found in whm. Specifically that first one 0 -
No. If there is no account then you use the templates you found in whm. Specifically that first one
Hello Again, thank you for your reply. I am doing in this way but i dont want to redirect domain to, for example domain.com/cgi-sys/defaultwebpage.cgi but to stay just domain.com and to load the /cgi-sys/defaultwebpage.cgi that is on Default Website Template on Web Template Editor. Have any way to do this ? Thank you again0 -
Not that I am aware of, no. 0 -
Hello @Euralb, Modifying the default website page template is not the best approach to accomplish this task. Instead, you should consider automatically creating a new page named "index.html" in the document root of the domain at account creation time or after any hookable event. The following resources offer examples of how you could do this: Note the example is for WordPress, but you could apply the same concept for anything type of automated task. Thank you. 0 -
Hello @Euralb, Modifying the default website page template is not the best approach to accomplish this task. Instead, you should consider automatically creating a new page named "index.html" in the document root of the domain at account creation time or after any hookable event. The following resources offer examples of how you could do this: Note the example is for WordPress, but you could apply the same concept for anything type of automated task. Thank you.
Hello @cPanelMichael I dont know if you understand me very well. For example, i have an domain registered through a domain registrar and automatically the domain that is registered have the default nameservers of a domain registrar but isnt hosted on any server of these nameserver, he just is pointed on their nameservers and when you click the domain.com, you will see an index.html from a domain registrar that tell you: "Welcome to....." I know and i tried just to point an domain in my nameserver without creating an account in WHM and the domain displays the /cgi-sys/defaultwebpage.cgi. Now i want to display another index.html instead of defaultwebpage.cgi as the above example. But everything should be only when the user add the our default nameservers not when he creating a new account or something else. I hope that you understand me Thank you, Enea.0 -
Hello @Euralb, For that to work, you'd have to consult with your domain registrar's support team to see if there is an API you could utilize to alert the cPanel & WHM server about the registration and name servers events for domain names registered through their service. We provide a list of companies offering system administration services should you need help with this type of configuration: System Administration Services | cPanel Forums Thank you. 0 -
I have something like this. with go daddy i basically use the skeleton directory and get an account created with the basic minimum to store the files and to publish on the website. I have attached an example i have for this 0 -
I have something like this. with go daddy i basically use the skeleton directory and get an account created with the basic minimum to store the files and to publish on the website. I have attached an example i have for this
I see man but i was looking to do it automatically without creating an cpanel account for that but only to point the domain in my nameservers and thats it. :)0
Please sign in to leave a comment.
Comments
10 comments