How to make website work on entering domain name

Expected behavior

Website loads on entering domain name

Current behaviour

I have to enter hoedlog.uk/cp to get my website to load

Possible solution

At the moment I have the following directory structure:
root : www : [domain name] : cp : [ClassicPress files]

I’m thinking I could delete the “cp” folder, and move it’s contents to the “hoedlog.uk” folder. However, I’m concerned that this might cause problems with the installation and/or security.

Context

I’m having some difficulty setting up a child theme. So, I though it would be a good idea to sort out the directory structure before asking for help with this.

This is an issue with your DNS records. I’d suggest you seek assistance from your webhost, and possibly domain registrar, if they’re not the same.

1 Like

I do all my sites like this, with the CP/Wp files in a folder.
Copy the .htaccess and index.php files from domainname.com/cp to domainname.com and then edit the one line in the index file. Change
require DIR . ‘/wp-blog-header.php’;
to
require DIR . ‘/cp/wp-blog-header.php’;
or what ever folder you have the installation in.
Your site will then behave as though the folder did not exist.
You will only see /cp/ in the url when you are logged in.
One big advantage is if you are working on a major update to your site you can create it independently in another folder and to make it “live” all you need to do is edit that line in the index.php file

1 Like

@raygulick Thanks. The people that run my webhosting suggested I set www.hoedlog.uk to locally hosted in ‘/www/hoedlog.uk/cp/’ in the Domain settings

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.