Where is domain home dir defined?
I am a new host owner.
ISP helped me set up cPanel, and I could access my domain though default page which is index.html in the folder /home/ME/public_html.
Then I installed wordpress into the folder /home/ME/public_html/wordpress, and I still could access my domain by /home/ME/public_html/index.html.
After some change and play, when I try to access my domain, it always go to directory /home/ME/public_html/wordpress and try to run index.php under this folder and my URL bar shows www.MyDomain.ca/wordpress even I enter is www.MyDomain.ca
My question are:
(1) Where the domain home folder is defined? Could I change it back to /home/ME/public_html?
(2) Is it the task of ISP, cPanel, WordPress or me?
(2) Do I have a way to uninstall wordpress clearly?
Thanks
-
Hello @Ming Lu, It's likely the WordPress directory was modified using one of the methods documented on the link below: Giving WordPress Its Own Directory " WordPress Codex Can you confirm if any rewrite rules exist in the .htaccess file within the /home/username/public_html directory? Thank you. 0 -
Hello, Michael: I tried to find .htaccess file yesterday, but I could not find it within the /home/username/public_html directory. I also searched the file in whole my file system, and only find following one: public_html/wordpress/wp-content/plugins/akismet/.htaccess Then I did a lot of operation, including (1) remove wordpress, (2) copy all public_html sub-folders from a backup file. Now it seems my domain home folder is /home/username/public_html: when I enter Giving WordPress Its Own Directory. I did steps (7,8,9) in Method II (With URL change). Maybe it is the reason I was run into problem. Thanks for your help. 0 -
Hello @Ming Lu, I'm glad to see you were able to solve the issue. Going forward, it's a good idea to install WordPress using the WordPress Manager option in cPanel (if your hosting provider has enabled it). We document this option at: WordPress Manager - cPanel Knowledge Base - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
3 comments