You need to login to the database and manually edit 2 entries. In the wp_options table you can find siteurl
and home
. Update those appropriately, you should then be able to login properly.
You also need to update your .htaccess
file but if you edit your permalink options and then change them back this should rewrite it for you.
For future reference to simply change directory of your installation if you login to the WP admin and go to Admin -> Settings -> General you can change the WordPress Address and Site Address (the options you changed manually in the database) there. Once changed simply copy the entire installation folder to the new location and that will be it. It’s easier to make the changes before you move it than after.
Related Posts:
- adding rewrite rules in .htaccess
- Static raw HTML page
- Plugin to edit htaccess file
- .htaccess file redirecting to parent directory
- Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
- Permalinks not working on second wordpress installed in a subdirect
- Rewrite rule not working
- Change wp-content without changing the name of the folder
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- Temporary .htaccess blocking is disabling WP Crons from running?
- How to restrict access to wp-content, wp-includes and all sub-folders
- .htaccess redirects disappeared after re-saving permalinks
- Is it possible to dynamically redirect URL using htaccess?
- Which WordPress scripts need to be executable for a fresh installation?
- Keep getting 401 error from WordPress on AWS Lightsail
- Setup Permanent 301 Redirects after moving to Https [closed]
- Force www to non-www on a subdomain in WordPress?
- WordPress multilingual website domain and folders
- Attach to wp-login.php and xmlrpc.php
- WP site URL changed to have HTTPS but still homepage does not redirect
- need a help for modify .htaccess rule [closed]
- XMLRPC filtering through htaccess not working
- Corrupt .htaccess file
- Cache policy not updated according to PageSpeed
- .htaccess ‘down for maitenance’ and WordPress
- What’s the opposite of required valid user in .htaccess authentication
- Which is better: 301 Redirect in my .htaccess file or a plugin like Redirection?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- When is it necessary to have Header unset Vary in .htaccess
- Redirect http to https does not work on subdir where another instance of WordPress installed
- Fixing custom 404 pages broken by WordPress in a subdirectory
- redirect the homepage using .htaccess outside of WordPress
- I can’t access the admin panel links as I click it shows 403 error
- 403 error on admin login page
- How to hide login form if basic authentication fails?
- Redirect an old link to new site homepage [closed]
- HTTP Error 406 always on site?
- Point all URLs to homepage but maintain URL
- .htaccess rewriting old RSS feed URL to WordPress feed URL
- How can I set Cache TTL for woff and woff2 font files with htaccess?
- htaccess working on local server but not on live server
- How can I fix the redirect chain after implementing ssl on wordpress?
- How to write .htaccess so that https is on for subpages only but not the home page
- How do I configure wordpress structure for development using git and composer
- How to create a redirect in the .htaccess file, with 2 exceptions
- Custom rewrite rule, url returning 404
- My Homepage Suddenly Disappeared and I Can’t Get It Back
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- WordPress .htaccess file gives issues with subdirectory
- W3 Total Cache CSS & JS files GZip issues [closed]
- WP Super Cache unable to locate cache file for only the homepage
- Disable directory browsing of uploads folder
- Cannot login to WordPress site after changing .htaccess for security purposes
- WordPress permalink, stop redirection
- Local PC cache stays filled with old WordPress Site data
- How to have a custom URI path for specific page template
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- WordPress JSON API restrict to specific domain
- Where to put W3 Total Cache rewrite rules in .htaccess? [closed]
- Non WordPress Folder in a WordPress Site
- Htaccess rewrite based on query string, not working [closed]
- Redirect all subdomains to root domain
- Rewrite Rules not redirecting rewrite
- How do i allow access to a single file in my root directory? [closed]
- Change root directory
- Selectively Disabling PHP via .htaccess in Root Directory
- What’s the best way to manage a lot of 301 redirects in WordPress?
- Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection
- Htaccess maintenance page rules that actually work with WordPress?
- What causes 404 errors that forces you to rebuild a .htaccess file?
- How to allow only vpn access to dashboard on Bitnami WordPress by IP address restricting
- How to set up MS Exchange Autodiscover alongside WordPress
- Xampp is not loading media
- PHP application in sub directory keeps redirecting to main site
- Blocking wp-login in HTACCESS has also blocked password protected pages
- execute cron jobs when .htaccess login protected?
- Redirect WordPress site to a landing (construction) page using htaccess, with access to /wp-admin and /invoice
- htaccess redirect to path
- Non-wordpress subdomain on Multisite Installation
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- change URIs of migrated site
- Rewrite rules and maintain URL
- htaccess- to hide subdirectory slug only from the post
- Subfolder renaming
- Steps for WordPress over SSL
- Fixing Access-Control-Allow-Origin (CORS origin) for multiple subdomains
- Targeting .htaccess file with file_put_contents
- Redirect Loop in Regex Moving to HTTPS
- .htaccess file changes disappear
- insert_with_markers() WordPress & htaccess help
- WordPress login bug. Need an emergency solution
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- Cannot find webarh/malware redirect infection that only shows on Chrome
- Where is the htaccess in wordpress.com hosting?
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- WordPress redirection
- Home page returns 404
- Browser Caching .htaccess