0

I need to change a magento domain to a temporary IP this way for development:

http://www.domain.com > http://xxx.xxx.xxx.xx/domain

I made several searches, changes to core_config_data and everytime I try the new URL it sends me back to http://www.domain.com. The problem also occurs on /admin.

Anyone has the answer for that ?

THank you !

Gustavo

4
  • change it from the admin panel instead- Base URL and BaseURL Secure
    – fmsthird
    Dec 29, 2018 at 3:36
  • I cannot reach admin panel cause it redirects to the production site with production database. Dec 29, 2018 at 12:21
  • Still nothing, anyone can help me ? Dec 30, 2018 at 0:51
  • have you tried Rewrite base using your htaccess? I think that's the only way you can do that in regard to the case you have. I post an answer with an example
    – fmsthird
    Dec 30, 2018 at 2:39

1 Answer 1

0

try it through .htaccess using RewriteBase check this example here

RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC]
RewriteRule ^(.*)$ index.php?/$1 [L]

RewriteBase /~username/
RewriteCond %{HTTP_HOST} ^xxx\.xxx\.xxx\.xxx [NC]
RewriteRule ^(.*)$ index.php?/$1 [L]
2
  • Unfortunately it made no changes. It keeps redirecting. It must be something in the database. Dec 30, 2018 at 3:04
  • try cache:flush then check agai. It should work
    – fmsthird
    Dec 30, 2018 at 3:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.