Go Back   HostGator Peer Support Forums > General Discussion > Webhosting

Notices

Reply
 
Thread Tools
  #1  
Old 05-13-2006, 02:04 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default display domain name in title

We have the default index page set up to display whenever someone creates an account in our reseller hosting account but want the title to be the domain name. Searching the web now for the answer but aren't being successful. Anyone know what would display the domain name variable within the default index page in cpanel?
__________________
best regards,
George
Reply With Quote
  #2  
Old 05-13-2006, 03:11 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,557
Default Re: display domain name in title

Make the index page using php, i.e. in index.php you can have something like this:

Code:
<HTML>
<head>
<?php
echo "<title>{$_SERVER['SERVER_NAME']}</title>"
?>
</head>
<body>
Content here
</body>
</html>
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 05-13-2006, 03:28 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: display domain name in title

OK that worked nice for putting the title tag to the domain name, but we also wanted to have the domain name as the heading on the page. Then the next question would be how we would get whm to use a different extension for the default page installed when a new account is created? whether it be index.php or index.shtml
__________________
best regards,
George
Reply With Quote
  #4  
Old 05-13-2006, 03:45 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: display domain name in title

Thanks I figured out where to change the whm installed page for new accounts. I found them in cpanel3-skel directory.
__________________
best regards,
George
Reply With Quote
  #5  
Old 05-14-2006, 09:01 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: display domain name in title

Quote:
Originally Posted by gtgeorge
Thanks I figured out where to change the whm installed page for new accounts. I found them in cpanel3-skel directory.
Another good thing to put in skel are the 400, 401, 404 and 500 pages along with robots.txt and .htaccess. That way every account has those presetup.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 09:55 PM.