Hosted Website (CCGI) repointing to another host and port number
FIXED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: Hosted Website (CCGI) repointing to another ho...
05-05-2021 6:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi folks,
I currently have a domain hosted with plusnet for years, and recently moved it onto CCGI and word press. I know I could repoint it using a CNAME record to another host, but would like to repoint to another host and specify the port number. For example mydomain.com -> mynewdomain.com:8000
As in the CCGI site we are using PHP, is this possible. or do I need to use the default port numbers?
Thanks in advance
Tony
Fixed! Go to the fix.
Re: Hosted Website (CCGI) repointing to another host and port number
05-05-2021 7:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If it helped click the thumb
If it fixed it click 'This fixed my problem'
Re: Hosted Website (CCGI) repointing to another host and port number
06-05-2021 10:39 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I do have access to the DNS records, but won't that only alter the DNS name and not repoint the port?
I assume you mean the DNS records for the hosted domain under "Additional DNS records (Advanced)"
Regards
Tony
Re: Hosted Website (CCGI) repointing to another host and port number
06-05-2021 11:09 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If it helped click the thumb
If it fixed it click 'This fixed my problem'
Re: Hosted Website (CCGI) repointing to another host and port number
06-05-2021 12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Looking at the admin port for a domain hosted by plusnet then I can only specify A, CNAME or MX records not SRV.
That would put this option off the table correct?
Regards
Tony
Re: Hosted Website (CCGI) repointing to another host and port number
06-05-2021 12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Other option is to have a redirect on load of the mydomain.com to mydomain.com:port.
So if anyone ever hits standard port 80 it gets an auto redirect.
If it helped click the thumb
If it fixed it click 'This fixed my problem'
Re: Hosted Website (CCGI) repointing to another host and port number
06-05-2021 4:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
So basically I will need an nginx type solution on the target server.
Or can the php scripts that are running on the PN CCGI not do this?
Regards
Tony
06-05-2021 5:14 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
header("Location: http://example.com/myOtherPage.php");
die();
If it helped click the thumb
If it fixed it click 'This fixed my problem'
Re: Hosted Website (CCGI) repointing to another host and port number
08-05-2021 6:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Actually that got me thinking and I did a mixture of this PHP command and also mod_rewrite in the .htaccess files.
Basically the main .htaccess file I had it deciding which folder to go to /folderA /folderB and where I wanted the redirect to the other domain and port, then I just changed the index.php file in that folder to do the redirect.
Thanks for you suggestion and help
Regards
Tony
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: Hosted Website (CCGI) repointing to another ho...