epanagio

Well-Known Member
May 26, 2012
50
1
58
cPanel Access Level
Website Owner
I have a domain that that is hosted in

/home/account/public_html

I have to move the data to

/home/account/public_html/wordpress/

How do I redirect the site's home without having a file to do the redirecting?

<edit>
By that I mean that instead of going to:

www.domain.com/wordpress

I would like it to be

www.domain.com

and it will display the contents of

/home/account/public_html/wordpress/

I hope I made it clear.
 
Last edited:

big_bull

Well-Known Member
Nov 19, 2006
150
0
166
cPanel Access Level
Root Administrator
Hi,

Copy the data to the /home/account/public_html/wordpress folder and then change the documentroot in httpd.conf and restart the apache service.

Regards,
 

epanagio

Well-Known Member
May 26, 2012
50
1
58
cPanel Access Level
Website Owner
I have the data in /home/account/public_html/wordpress

I added a virtual host where
DocumentRoot "/home/account/public_html/wordpress"
ServerName <domain name here>
ServerAlias www.<domain name here>
When I go to <domain name here> it takes me to <domain name here>/wordpress

I do not have a redirect (I had one and removed it) and I restarted httpd.

Any suggestions?
 

epanagio

Well-Known Member
May 26, 2012
50
1
58
cPanel Access Level
Website Owner
After clearing the cache it looks like apache's virtual host is not working properly. I will go to the apache area and get that resolved.

Thanks.
 

big_bull

Well-Known Member
Nov 19, 2006
150
0
166
cPanel Access Level
Root Administrator
Hi,

Already included the steps to modify the documentroot in /var/cpanel/userdata/cpanelusername/domain.com file, not sure why it was not included in the reply....

anyways, the issue must have been resolved :)