• Resolved kaspirtk1

    (@kaspirtk1)


    I had a website that needed a redesign, so I installed wp in a “dev” folder and created the site in there. My boss then decided to transfer hosting servers, which I thought would be a great time to switch to the new design. The problem is, that all of the file paths are preceded with https://www.website.com/dev” which is an obvious issue, but the bigger problem is this. I cannot get into the wp-admin panel. When I attempt to navigate to https://www.website.com/wp-admin I get a 404 error page, and the url that it takes me to is: https://www.website.com//dev/wp-login.php?redirect_to=http%3A%2F%2Fwww.website.com%2Fwp-admin%2F&reauth=1 and I don’t see an .htaccess file in the wp-admin folder that I can change the redirection in.

    So how do I manually go in the files and change the default path for at least some of this stuff to get me started in recovering the website. I changed the paths in the .htaccess file already. Also, I apologize in advance, I don’t know how to tell which version of WP I’m using without the admin panel.

Viewing 15 replies - 1 through 15 (of 22 total)
  • Can you clarify exactly what you did? Did you attempt to to move this dev site to a new server and change its urls?

    Thread Starter kaspirtk1

    (@kaspirtk1)

    On the old server I created a dev folder, installed wp and edited it with custom theme and essentially created a finished website. Then we switched hosting providers, so I uploaded all files out of the dev folder into the public_html folder on the new server, and then imported the db on the new server. I have attempted to change the urls to get rid of the dev in the url, but was unsuccessful due to the fact that I can’t access the wp-admin panel.

    then imported the db on the new server

    You’ll need to run more than a standard search & replace on the database due to the fact that some urls are stored in serialized arrays. There are a couple of tools in Moving_WordPress that should help with this.

    Thread Starter kaspirtk1

    (@kaspirtk1)

    Will I be able to use that plugin even though I no longer have access to the old server? I have all of the files backed up locally.

    Thread Starter kaspirtk1

    (@kaspirtk1)

    Oh it’s not a plugin nevermind haha

    Don’t know about the plugin but you should be able to run the safe search & replace script on a copy of the database and then replace the existing database with the copy.

    Thread Starter kaspirtk1

    (@kaspirtk1)

    How would you suggest I run the search and replace tool. I was thinking of searching for “www.website.com/dev/” and replacing with “www.website.com/”. I know it’s a silly question but there’s all this jazz on their site about how you can seriously damage your installation.

    Download a copy of the database, run the script on the downloaded dump. Upload the amended dump – to a new db if you want. Just remember to change your wp-config.php to match.

    Thread Starter kaspirtk1

    (@kaspirtk1)

    I ran the search and replace and even though there were some changes made, I’m still getting the same issue. wp-admin is still taking me to website.com/dev/wp-login.php?redirect_to=http%3A%2F%2Fwww.website.com%2Fwp-admin%2F&reauth=1. I searched for the word “dev” and came up with nothing. Now what?

    Are you sure you ran the script and uploaded the db dump after the script had finished? That seemed to be very quick!

    Thread Starter kaspirtk1

    (@kaspirtk1)

    I have a copy of the db backed up on my computer, so I just ran it on the live db. I’ll import the tables into a new db, and change point the config file at it and see if that makes a difference.

    Thread Starter kaspirtk1

    (@kaspirtk1)

    229 Changes made, and still can’t access the wp-admin panel, and the blog still doesn’t display correctly.

    229 changes? How many changes were made last time you ran the script?

    Thread Starter kaspirtk1

    (@kaspirtk1)

    Not that many. Less than 100 for sure.

    I’m somewhat concerned as to how the same script run on (presumably) the same database can find more than twice the number of changes on one pass than on another. I’ve used that script a number of times and I’ve never had any problems.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘wp-admin inaccessible due to development file paths’ is closed to new replies.