Remove /WP from the url

Grobarcina

Newbie
Joined
Nov 6, 2014
Messages
34
Reaction score
5
Hi guys!


I was trying to remove the " / wp " from the end of my wordpress website, I checked around on how to do it and found it. I followed the steps and changed the URL-name, edited the file in the root directory that had to be edited. But the problem is that it still doesn't work, I can still access the "/ wp-admin /" of course but I can't access the website. Since the " / wp " and the ". com" (without the / wp ) doesn't work. I was just wondering if it's a time thing where I have to wait for it to apply or have I done something wrong?


The wordpress guide on how to do it also mentioned: "Since the site is not working for some of these steps, it is best to make this change at a time of low activity, e.g., the middle of the night.". I got the information from Wordpress' own FAQ-section.


That is why I was wondering! I also contacted the host service of course, but I wanted to see if you guys might have some clues regarding this.
 
You just need to go to general settings page in wp dashboard and change the url their.

If you still find issues with it, please PM me your website UL and I will tell you how to fix it.
 
Thank you for the quick reply. I did as you said, I will wait until tomorrow. If I still have issues I will contact you! Thanks
 
Simple way is to change the URL from the wordpress dashboard as it is mentioned above.
 
While installing WordPress you need to choose the directory you want it in. It's set to 'wp' by default and if you don't remove that then your site's gonna look like yoursite.com/wp and you can't do anything about it.

The next time install it in the home directory (public_html) and not in public_html/wp.
Cheers!
 
I think, its been a while since I did this for someone, you will have to go through your database and change every occurrence of /wp to nothing.

** EDIT **

To do it, log into PHPMyAdmin and export the database. Open that sql file in something like notepad++ and do a search and replace.
This is the tricky bit: in PHPMyAdmin drop all the tables and then import the sql file you just edited and you should be good to go.

As always, ensure you have a decent back up first incase everything goes tits up!
 
I think, its been a while since I did this for someone, you will have to go through your database and change every occurrence of /wp to nothing.

** EDIT **

To do it, log into PHPMyAdmin and export the database. Open that sql file in something like notepad++ and do a search and replace.
This is the tricky bit: in PHPMyAdmin drop all the tables and then import the sql file you just edited and you should be good to go.

As always, ensure you have a decent back up first incase everything goes tits up!
OP this looks like a lot of work so I'd simply reinstall WordPress to public_html.
Check this out - http://prntscr.com/917x5o
 
If you are still experiencing this issue on a new wordpress installation, my recommendation is to correctly install wordpress to the appropriate directory. Unfortunately though, based on your original query my gut tells me you are trying to access the following link but want to remove the "wp" part:

http://website.com/wp-admin

This is hard-coded into a wordpress installation and CANNOT be changed without re-writing every explicit reference within the wordpress code. If this is the correct interpretation of your question it makes one wonder ... why would you be trying to change the way wordpress works anyway.

If I'm wrong, and you simply installed wordpress to http://site.com/wp as the directory where you installed wp, then the fix is as simple as properly reinstalling NOT in that directory OR:

move all the files to the appropriate folder AND update functions.php with the correct URL and SITE information AND make the same changes in the database using PHPMYADMIN.

I'm still convinced you somehow think the wp-admin means your blog is in a folder called wp, but it's actually just how that particular ADMIN login page is structured. All admin functions you engage in your browser will show wp-admin most of the time. If you're legitimately installed in the wrong folder ... contact someone who knows what they are doing to correct this as you will be both unlikely to correct it, and super likely to mess things up even further. Sometimes it's just best to reach out and let people with more experience correct such simple problems.
 
HideMYWP is probably one of my favourite plugins, can use it to change any url structure, div classes or id's from your theme on your site. If that helps in any way.
 
As i have mentioned above you can change the url from dashboard. Else in the backend move the files outside of the folder wp, so that you no need to use the wp in url.
 
all in one security plugin can do this and obfuscate the login pages and reg pages
 
Back
Top