Questions tagged [base-url]
Denotes question regarding Magento Base URL
174
questions
0
votes
1
answer
90
views
Magento 2 - How to add specific base url for store
In Magento 2 I try to add specific base url for store view.
This is my configuration :
My website 1 contains two store view :
Store view 1 : my_store_view_1
Store view 2 : my_store_view_2
Base urls ...
0
votes
0
answers
22
views
Magento 1.8 - when i change base secure & unsecure URL admin panel load without CSS & Javascript
After updating Magento 1.8 base URL for both secure and unsecured, the front end loads fine, but the backend is lading in plain HTML (CSS and js is missing)
Steps taken:
Base URL for secure and ...
0
votes
1
answer
82
views
How can I get the url of my new module?
This is a simple Hello World in a Block, I would like how can I get the URL of this, to check the website this HelloWorld.
I don't know to check my exercises, because I don't know how to get the URL ...
0
votes
0
answers
67
views
M2 Admin CSS URLs incorrect
After we incorrectly changed Base URLs in the admin area, we lost all CSS etc on both front and back ends. Could not fix via the admin area as Save buttons not working.
In the database I updated the ...
0
votes
1
answer
236
views
Magento 2 - Images are not getting loaded after changing Media Base Url
I have two projects:
relaunch.company.de
redesign.company.de (clone from relaunch.company.de)
Note: The base url of both projects is set to their pub directory.
I want to setup redesign.company.de ...
0
votes
1
answer
419
views
How to get the base url in config.xml file
How to get the base url into magento2 module app/etc/config.xml file.
<storefront>
<report_uri>https://www.example.com/</report_uri>
</storefront>
instead of https://www....
0
votes
1
answer
124
views
How to get Base Url in Checkout Html FIle in Magento 2?
I have create a new step in checkout form Magento 2.
I want to get base Url in my .html file like http://127.0.0.1/magento How will i get that?
Any help is appreciated.
0
votes
1
answer
21
views
Magento directing all link for pages and admin to old domain except the homepage
I have done all magento things which were supposed update the core_config data table
setup:di:compile
setup configured base_url through command line and also done with n98
My site home page is only ...
-1
votes
3
answers
380
views
How to get Base URL in magento 2 admin script?
I Have added a script ( JS File ) in Magento 2 admin side in my custom module.
It added successfully but how to get Base URL in admin side js file.
I have tried this
Js file path ( app/code/Tym17/...
0
votes
1
answer
29
views
Multi website category url issue in magento 2
I have 2 website Retail and wholesale. Both the websites have same categories.
Retail website takes proper base url.https://5iallk0uwem1coeq.mojostratus.io/
For the wholesale website i have set the ...
2
votes
1
answer
104
views
Allowing two base URLs (same instance, same store)
Is there any way to allow Magento to accept two base URLs?
The reason being our security team requested to disallow admin URL from being accessed from the internet so we are planning to use two URLs ...
2
votes
1
answer
250
views
How to Get Base Url in Theme Custom JS file and how to return response in JSON format?
I have created a module in which all the things is done just 2 things are remaining .
How to add Dynamic base url in Magento 2 theme JS file. ex : http://127.0.0.1/projectname how to get that ...
2
votes
0
answers
145
views
How to make Magento 2 accessible using different url Domain without creating Multi Website?
So using other PHP frameworks such as Laravel and CI, I can point my virtual host to the same project folder and access it with a different domain. However using Magento 2 the base URL is defined in ...
0
votes
2
answers
362
views
Magento2 - How to get base url in js file added to backend?
I have try to get base url using mage/url in my custom js , but it return url without base url so,
is there any another way using that we can get magento base url in js which is added in admin side ?
0
votes
2
answers
2k
views
Get URL of Current Store View Store Magento 2
I have created multiple stores in one. Now when I change the store view it definitely changes and I have set the Base URLs for this store view accurately.
But when I try to get the current store view ...
0
votes
0
answers
110
views
External (CDN) location images only for multiple domain stores
I have multiple stores on multiple domains (all single store magento installs) that use a lot of the same product images. I want to store all the images in a single location and let the different ...
0
votes
1
answer
267
views
How to Change URL of Magento Site After Modifying Apache DocumentRoot?
My question is similar to How to do redirect the URL of site but I want to do the opposite. And there is a further challenge or two I cannot understand yet.
Our setup is a Magento 2.3.3 store running ...
2
votes
1
answer
229
views
Magento 1.9 change base url form http to https
I see HTTP mixed content found on my website.
I recently did https. This is my site
https://www.legacyfurniture.net/
when i load i still see http links for menu and base url.
I followed below ...
1
vote
1
answer
22
views
Setting up multiple sites correctly
I'm trying to set up multiple sites for my company.
We want to make it scaleable, so I don't want to touch the default store. I want to create 3 stores, and each one of them needs to have it's own ...
0
votes
4
answers
481
views
How to get "product url" for multi website in sales email template
From my magento2 backend i created 2 website. 1st default website xxxx.com 2nd website is yyyy.com.
In my sales order email template, added
$_order = $_item->getOrder();
$_objectManager = \...
0
votes
1
answer
33
views
I transfer my magento 2.3 to other server and changed url base but not working
I changed my Magento server but at moment not working.
Changed:
1. web/unsecure/base_url = http://52.44.112.168/~champrob2b
2. web/secure/base_url = http://52.44.112.168/~champrob2b
3. Clean Cache
...
1
vote
1
answer
89
views
Magento frontend and backend broke : Magento 2
/app/etc/env.php --- 'localhost' vs '127.0.0.1'
I changed localhost to 127.0.0.1 however my Magento frontend and backend broke after that.
'db' => [
'table_prefix' => '',
'...
0
votes
1
answer
40
views
Magento 2 Migration problem
I recently migrated my Magento store to a new server. I moved the whole store, import the database, the SSL certificates and modify domain dns so it points to new Server's IP.
The problem is that when ...
0
votes
2
answers
146
views
Magento 1.9 rewriting base store url for multiple websites
I have three different websites and within one website three stores on a single Magento 1.9 installation.
1. www.domain1.com
2. www.domain2.com
3. www.domain3.com
Each domain contains three ...
0
votes
0
answers
91
views
Magento 2 admin panel is down after changing Base URL
I have changed Base URL secure and unsecure from the backend.
I had the following url= http://subdomain.domain.org/folder (also https) and I changed it in order to have http://subdomain.domain.org/.
...
1
vote
0
answers
29
views
Different storeviews (languages) with different url's not working
We have a multilanguage store, was working fine. Now we changed the URL for every language but now the switch is not working anymore. Not even changing the language anymore.
compile, cleaning cache, ...
6
votes
2
answers
184
views
How to setup more than one project in docker?
I have successfully installed Magento 2 with sample data using Docker
everything works fine but I have below question.
Magento 2 project Base URL is 127.0.0.1 How can I change this URL?
What if I ...
4
votes
2
answers
672
views
How to get base url in Unit Test?
This is my unit test in my custom module:
namespace Star\Trek\Test\Unit\Model;
class BeyondTest extends \PHPUnit\Framework\TestCase
{
}
How can I get my Magento 2 base URL in there?
0
votes
1
answer
260
views
Magetno 2 base url 302 redirection
Hi I am trying to implement add extra key to base url
example
my base url:: abcd.com
if user click on any key with base_url like below
user entered url :: pawan.abcd.com site need set new theme if ...
0
votes
1
answer
162
views
Magento 2 Base Url path issue custom theme
I have a Magento 2.3.1 site installed in a subfolder and I have a problem with base URL.
When I have a link like this < a href="#" > LINK < /a > Instead of this www.domainname.com/...
0
votes
1
answer
171
views
Using ngrok with Magento 1 issue
I have a virtual host set up. My local url is http://test.local
When I start ngrok, my local url will become:
http://test.local.ngrok.io so I changed my base secure and unsecure url to: http://test....
0
votes
1
answer
419
views
Magento 2 - How to get Base URL in cronjob
In other file I use this code to get base URL
$this->storeManager->getStore()->getBaseUrl()
where $this->storeManager is a instance of \Magento\Store\Model\StoreManagerInterface
My ...
0
votes
0
answers
43
views
Same DB for multiple stagings
I am creating multiple staging servers for my Magento 2 website.
staging1.mywebsite.com
staging2.mywebsite.com
staging3.mywebsite.com
Is it possible to have single database for all 3 of my staging ...
4
votes
1
answer
816
views
Magento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessed
On doing php bin/magento setup:static-content:deploy -f
I am getting error
Compilation from source:
vendor/magento/theme-frontend-blank/web/css/email-inline.less variable
@baseUrl is undefined ...
1
vote
1
answer
133
views
Magento 2.1.3 Build multiple store views with unique subdomains pull CSS and JS from parent website URL?
I've been googling this all afternoon, suffering from Search Engine blindness, so much so I even tried bing for a moment...
I have a multiple language site set up with different URL's assigned to ...
0
votes
1
answer
78
views
Magento 2 : Update url to domain
I'm using an Instance of Ubuntu 16.04 lts on Google to run a store, but I'd like to point to my domain.
Wich line on Apache2 should I update?
2
votes
0
answers
208
views
M2: getBaseUrl() - StoreManagerInterface vs StoreConfigInterface
If someone asks for getting base URL, the answer is always to use StoreManagerInterface, like ...
protected $storeManager;
public function __construct(
...
\Magento\Store\Model\...
0
votes
1
answer
70
views
Magento Multisite links go to wrong domain
I have created a new website within my Magento (1.9.3.10)
I've created a home page and got the menu visible.
When you click on a Menu item, it links to my other website domain, showing a 404.
I have ...
2
votes
2
answers
1k
views
Magento2: Remove home after base url
How to remove /home after baseUrl ?
www.baseurl.com/home
I want to redirect www.baseurl.com/home to www.baseurl.com (301)
0
votes
1
answer
80
views
Magento 2.2.6 CSS JS not loading in admin panel after changing base and custom admin URLs
It's a multi store site in development and I changed the test URL to one of the production URLs for the default Base URLs and one of the store Base URLs. I also changed the option to Use Custom Admin ...
0
votes
0
answers
1k
views
TCPDF ERROR: Unable to create output file in Magento2
I am trying to get PDF Download able, I installed TCPDF library by this:
composer require tecnickcom/tcpdf
and created PDF Document as:
// create new PDF document
$pdf = new \TCPDF(...
0
votes
1
answer
130
views
Full base url appended after base url when reaching page
For a demo environment, I had to upload my Magento project to a server, without a domain name. My Magento base URL is http://62.221.209.128/plesk-site-preview/rodrigootazu.com/62.221.209.128/, but as ...
1
vote
1
answer
29
views
How to change base_url of other stores?
I exported a live database from a magento installation with 2 websites and 3 different stores and imported it on another magento installation.
I already changed the base_url of the main store, but ...
0
votes
2
answers
161
views
Magento 1.9.3.8 Full https causes double / ending
I made my entire site https by changing the unsecure_url to https rather than http. Then in my .htaccess I added:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=...
0
votes
2
answers
669
views
Two Magento apps with single Database and Base url
I just need a help from you people. I am trying to connect two Magento web applications with a single database. It was done successfully but the problem I am facing is with the base URL.
I have two ...
-1
votes
1
answer
711
views
Change base url of Magento 2 without Changing in Magento Database
How to Change base URL of Magento 2 without Changing in Magento Database
For Example:
magnentoxyz.com means it will redirect to my Magento frontend
localhost/ means it will go to phpmyadmin page
4
votes
2
answers
5k
views
Get base url in email template
I've created a custom footer template inside my theme folder app/design/Vendor/Module/Magento_Email/email/footer.html , the problem is i need to get base url inside this html file.
0
votes
2
answers
405
views
CSS/JS don't load after changing URL
I have two store views, I changed one of them from wesbitetest.com to websitetest.com/fr-ca/ but the front end didn't load the js and CSS files as expected, and the URL becomes websitetest.com/fr-ca/?...
0
votes
1
answer
379
views
Server folder appears as output url for media, js and skin
Any ideas why Magento 1.9.2.4 sets the beginning of the media, skin and js url's like this /var/www/domain.com/html/ instead of normal http://www.domain.com like it has been set in unsecure_base_url ...
3
votes
0
answers
4k
views
Get base url in css file
Is there a way to load base url for background-image in css file? for example:
background-image: url('{base_url}/myimage.jpg');
background-repeat: repeat;