Domain name to show in address bar

Status
Not open for further replies.

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
Hi Guys,

first post on this forum so want to say hi before I start with my question. :biggrin:

I set up a free hosting account yesterday evening and then downloaded a phpbb forum and got it live (really impressed with myself so far), I then bought a domain name specific to what my forum is about.

I have managed to direct my domain name to my x10 hosting site but in the address bar it still reads : name.x10.mx rather than mydomainname.co.uk

Is it possible to change it and if so, could anyone point me in the right direction please :confused:
 
Last edited:

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
you might need to go into the settings of phpbb and specify that it should be using your new domain.

How did you set up your new domain?
The proper way would have been to add it to your cpanel as a parked domain, which makes it an alias of the main domain, before doing so you'd need to update the nameservers for the domain at your registrar though.

You need to set the domain to use our nameservers which are: ns1.x10hosting.com and ns2.x10hosting.com
 
Last edited:

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
you might need to go into the settings of phpbb and specify that it should be using your new domain.

How did you set up your new domain, the proper way would have been to add it to your cpanel as a parked domain, before doing so you'd need to update the nameservers for the domain at your registrar though, setting ithe domain to use ours which are: ns1.x10hosting.com and ns2.x10hosting.com
Hi Anna,

I added the new domain name through cpanel as a parked domain and addon domain, I also updated the nameservers at the registrar to use ns1.x10hosting.com and ns2.x10hosting.com.

It took a few hours to carry over but it certainly has and I access my site using the domainname.co.uk or name.x10.mx

I don't believe there is an option for phpbb to carry out the task but believe it is within the database of my account here.
 
Last edited:

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
Under server settings there's the option to set which domain the forum runs on, don't forget to also update the cookie settings. I'm not 100% certain that will do the trick, but it is regardless always good to have settings match the actual domain.

Most scripts are actually designed to rewrite the domain shown to match the one in its settings.
 
Last edited:

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
Anna, I tried changing the server settings and cookie settings but when I did I could not access the site at all, when I reset the cookie settings to that of name.x10.mx and left the server settings with domainname.co.uk then I could access the site again but still no domain name in the url
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
Did you by any chance set a redirect in cpanel when you added the domain? If so, remove that one as it is not needed and would make the x10 domain be the one shown (don't have server access at the moment so can't check your settings).
 
Last edited:

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
Did you by any chance set a redirect in cpanel when you added the domain? If so, remove that one as it is not needed and would make the x10 domain be the one shown (don't have server access at the moment so can't check your settings).
I had indeed redirected the domain name and have now removed the redirection and cleared my cookies but can no longer get to the site using the domain name address.
 

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
Also in cpanel the parked domain is set :



Domain :
domain name.co.uk

Domain Root :
/public_html

Redirects to :
not redirected

Actions :
Remove Manage Redirection
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Seems to be working now. Your *****.co.uk/forum/ works and keeps the correct name in the address bar.

1. You should have an index page in /public_html . I can now see the contents of that directory.
2. You should edit .htaccess in /public_html so *****.co.uk/ gets rewritten or redirected to *****.co.uk/forum/
 

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
Seems to be working now. Your *****.co.uk/forum/ works and keeps the correct name in the address bar.

1. You should have an index page in /public_html . I can now see the contents of that directory.
2. You should edit .htaccess in /public_html so *****.co.uk/ gets rewritten or redirected to *****.co.uk/forum/
I can still only access my site using name.x10.mx/forum, I cannot access it using domainname.co.uk
 

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
I can access it, so it sounds like a problem with either page caching (clear browser cache and history, close browser, open browser, check site) or DNS caching (http://docs.cpanel.net/twiki/bin/view/AllDocumentation/ClearingBrowserCache)

Sometimes even that won't work and you just have to wait (maybe another 24 hrs) for all the caches to clear themselves.
As you said I cleared cache yesterday and now I do get my domain name staying in the address bar and it takes me to the parent directory.

I have been into the hidden folder htaaccess file in the public root and edited/added to the first line the domain address, cleared the cache again but still get taken to the parent directory so maybe it is just a case of waiting I assume.
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
What you should add to .htaccess in /public_html is:



Code:
DirectoryIndex index.html index.php index.htm  forum/index.php
 

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
What you should add to .htaccess in /public_html is:



Code:
DirectoryIndex index.html index.php index.htm  forum/index.php

Can you have a look at the site now, as what you have said to put into the htaccess has worked (sort of), it takes to the page but not all the content is loading up.
 

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
descalzo - Just to update I have edited the htaccess as you said but the site was not loading up 'fully' so I have now redirected the site to the /forum.

I had hoped to keep just the domainname.co.uk in the address bar.
 
Status
Not open for further replies.
Top