Website redirect to subfolder

friedpiggy

Expert Member
Joined
Aug 6, 2005
Messages
1,709
Reaction score
1,273
Location
127.0.0.1
Ok this is a weird question (well to me anyway)

Firstly, it has been a LONG time since I did any website work so I am beyond rusty on this.

I have been helping a friend get his wordpress site up and running. Previously he had a static html site up that was thrown together in a few minutes just so that he would have something there with his contact details on it. He is hosting with Afrihost. Instead of asking me and getting me to install wordpress through softaculous he called the Afrihost helpdesk and they set up wordpress on his hosted account.

The problem is that they set it up under www.example.co.za/wp So now he has madee the changes he wanted and has put all of his content into the thing, but he wants it to load the wordpress site when people go to www.example.co.za

I have put in a index.html file with a meta refresh redirect so it will redirect to the /wp folder and it works and loads the wordpress site. The thing is he doesnt like the fact that it pops up a message saying that the site has been moved.

How can i change it so that it goes to example.co.za/wp by default without using the meta refresh?
 
Why not just move the contents of /wp folder to the root? Then change the site URL in the database. Sounds easier.
 
Doesn't this fix itself when google crawls the site and sees the new address?
 
If you can't just move the folder back up the site and restore it to the main directory.
 
No if you edit the wp_config table to show correct url, won’t have issue.
 
If it's not too late and no work has been done,

When installing wordpress using softaculous (I assume you're using this), where is says something like install directory (The field contains "wp"), just remove that text, then it will install to your www (Public parent folder)
 
@Thor - Thanks, reading through it now

@static_sa - Sadly he has already loaded all his content etc on to the site so just doing a new install isn't going to work.
 
If it's anything like cPanel... You can set the web root to the wp directory as the webroot and then do what "Ray7905" says.
 
Top
Sign up to the MyBroadband newsletter
X