Hi Everyone, I am stuck in with a problem on wordp...
# tribe
i
Hi Everyone, I am stuck in with a problem on wordpress where after login it re-directs me to wrong(prod environment) instead of current dev we are using. We have used Bitnami image for aws. So far I have tried • Updating the wp-config • Update database wp_options table Anyone can help with solving issue will really appreciate.
b
Are home URL and site URL correct?
i
yup
in wp-config and database
is there any other place I need to check?
p
@icy-addition-61071 • Do you have a link to the site - that you can share • did you check redirect
curl -I <https://sitename.com>
• Have you copied the production data over to your current dev and getting this issue ?
i
Well caught last one is true 🙂
@polite-secretary-64403 scenario is • open http://sitename.com opens correctly • navigate http://sitename.com/wp-login • enter creds • User is navigate to
<http://sitename-prod.com>
p
have you added this to your
wp-config
?
Copy code
define( 'WP_HOME', '<https://sitename.com>' );
define( 'WP_SITEURL', '<https://sitename.com>' );
i
yup they are correct
p
The Define should fix the URLs • what plugins are you using - can you try deactivating all plugins and trying to login ? • are you using WP CLi? if yes - can you do a search and replace
wp search-replace '<http://example.com|example.com>' 'example.dev' --skip-columns=guid
wp-options
is the table you need to look at.
i
@polite-secretary-64403 the search replace command worked, Thank you so much!
👍 1
@dazzling-autumn-14365 @bumpy-salesmen-84988 thanks to you as well