php - URL is changing in magento -
here want inquire 2 question. upload magento website localhost main server. website link
http://bigtechideas.com/dope
problem:1 - when open url http://bigtechideas.com/dope/admin returns http://bigtechideas.com/dopeindex.php/admin why add together index.php in url ?
problem:2 - when open http://bigtechideas.com/dope returns me https://bigtechideas.com/dope
why add together https in url?
this configured through magento backend. have set url unecrypted , encrypted pages (http & https) in settings. if move magento installation 1 server anther have edit urls.
you utilize next sql snippets straight modify settings in database. (i can't guarantee complete, should)
-- move magento server set @shop_domain = 'your_new_domain_without_http_here', @secure_protocol = 'https://'; -- set http:// if no certificate available update `core_config_data` set `value` = concat('http://', @shop_domain, '/') `path` = 'web/unsecure/base_url'; update `core_config_data` set `value` = concat(@secure_protocol, @shop_domain, '/') `path` = 'web/secure/base_url'; update `core_config_data` set `value` = concat('http://', @shop_domain, '/media/') `path` = 'web/unsecure/base_media_url'; update `core_config_data` set `value` = concat(@secure_protocol, @shop_domain, '/media/') `path` = 'web/secure/base_media_url'; update `core_config_data` set `value` = @shop_domain `path` = 'web/cookie/cookie_domain';
you have clear cache after changes.
php magento http redirect
No comments:
Post a Comment