• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Showing up as subdomain and subfolder

#1
Hi,

I originally installed xenforo as a sub-folder mydomain.com/community, but wanted it in a sub-domain community.mydomain.com

So, i deleted it and installed it again. now it shows up as both.

mydomain.com/community

community.mydomain.com

what did i do wrong? is there something else i should have deleted? i used hostgator cpanel sub-domain. I have a level 3 vps. any ideas on what has happened and what to do to have it only as:

community.mydomain.com
 

Brogan

XenForo moderator
Staff member
#4
If you have deleted the directory then there is nothing more to do - the files no longer physically exist in that location.
 
#5
I have deleted and reinstalled and deleted - it IS still showing up under both urls. I created the sub-domain in c-panel, i used filezilla this time and it still shows both! Obviously i am doing something wrong. please, take a look:

http://www.community.familyfriendlylives.com/

http://www.familyfriendlylives.com/community

Does this mean i have the software installed twice? I know that's a no-no - so, someone please tell me what i'm doing wrong as i do not want to violate the xenforo license.
 

Jeremy

Well-known member
#6
Many servers will create subdomain.example.com as a sub-folder of the domain. I can only assume this is what is happening.

You should be able to add a redirect from community/ to community. via .htacess:
Code:
RewriteRule ^/community/(.*)$ http://community.familyfriendlylives.com/$1 [R=301,L]