Magento 2 Base Url path issue custom themeCannot change the base urlbase url changedMagento base url emptyMagento 2 get admin base url in custom jsProgrammatically change base url of storeMagento Multi Store with multiple domainsFull base url appended after base url when reaching pagecustom theme implement magento 2.2.6 issueMagento 2.1.3 Build multiple store views with unique subdomains pull CSS and JS from parent website URL?
How can I include a header file that contains `>` in its name?
Does `declare -a A` create an empty array `A` in Bash?
What kind of appearance can I expect if I both overexpose and push film?
Did airlines fly their aircraft slower in response to oil prices in the 1970s?
Is it possible to kill all life on Earth?
Possible nonclassical ion from a bicyclic system
If a problem only occurs randomly once in every N times on average, how many tests do I have to perform to be certain that it's now fixed?
Can a non-EU citizen travel within the Schengen area without identity documents?
Expenditure in Poland - Forex doesn't have Zloty
Team member doesn't give me the minimum time to complete a talk
Preserving culinary oils
Biblical Basis for 400 years of silence between old and new testament
How to properly maintain eye contact with people that have distinctive facial features?
count number of files in directory with a certain name
Fastest way to perform complex search on pandas dataframe
Select row of data if next row contains zero
Differences between “pas vrai ?”, “c’est ça ?”, “hein ?”, and “n’est-ce pas ?”
Beginner's snake game using PyGame
Is it possible to change original filename of an exe?
Why would Lupin kill Pettigrew?
Asking bank to reduce APR instead of increasing credit limit
Can you move on your turn, and then use the Ready Action to move again on another creature's turn?
Turn on QGIS Dark Mode
Why do Russians call their women expensive ("дорогая")?
Magento 2 Base Url path issue custom theme
Cannot change the base urlbase url changedMagento base url emptyMagento 2 get admin base url in custom jsProgrammatically change base url of storeMagento Multi Store with multiple domainsFull base url appended after base url when reaching pagecustom theme implement magento 2.2.6 issueMagento 2.1.3 Build multiple store views with unique subdomains pull CSS and JS from parent website URL?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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/subfolder/# I got a wrong redirect to www.domainname.com/#
This occurs only when I enable a theme I purchased (Porto Theme), with default Magento 2 this issue not occur.
I wrote to Porto Theme support but they told me that they tried to find out what/where the issue was but did not succeed.
My base URL configuration (secure and insecure) are correct, folder permission is right and mod_rewrite in my server is enabled.
In essence if in a link there is href="#" like in the remove product from cart button the site with Porto Theme enabled redirects always and in any case to the root.
What can be the issue?
Thanks in advance
magento2 base-url custom-theme mod-rewrite
add a comment |
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/subfolder/# I got a wrong redirect to www.domainname.com/#
This occurs only when I enable a theme I purchased (Porto Theme), with default Magento 2 this issue not occur.
I wrote to Porto Theme support but they told me that they tried to find out what/where the issue was but did not succeed.
My base URL configuration (secure and insecure) are correct, folder permission is right and mod_rewrite in my server is enabled.
In essence if in a link there is href="#" like in the remove product from cart button the site with Porto Theme enabled redirects always and in any case to the root.
What can be the issue?
Thanks in advance
magento2 base-url custom-theme mod-rewrite
I tried to move the site to the root too but the issue remains. For exampe if you add a product to the cart and then from cart you want to remove the product, the site redirect always to www.domainname.com/# instead to www.domainname.com/path/#
– DanMar
May 23 at 11:38
add a comment |
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/subfolder/# I got a wrong redirect to www.domainname.com/#
This occurs only when I enable a theme I purchased (Porto Theme), with default Magento 2 this issue not occur.
I wrote to Porto Theme support but they told me that they tried to find out what/where the issue was but did not succeed.
My base URL configuration (secure and insecure) are correct, folder permission is right and mod_rewrite in my server is enabled.
In essence if in a link there is href="#" like in the remove product from cart button the site with Porto Theme enabled redirects always and in any case to the root.
What can be the issue?
Thanks in advance
magento2 base-url custom-theme mod-rewrite
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/subfolder/# I got a wrong redirect to www.domainname.com/#
This occurs only when I enable a theme I purchased (Porto Theme), with default Magento 2 this issue not occur.
I wrote to Porto Theme support but they told me that they tried to find out what/where the issue was but did not succeed.
My base URL configuration (secure and insecure) are correct, folder permission is right and mod_rewrite in my server is enabled.
In essence if in a link there is href="#" like in the remove product from cart button the site with Porto Theme enabled redirects always and in any case to the root.
What can be the issue?
Thanks in advance
magento2 base-url custom-theme mod-rewrite
magento2 base-url custom-theme mod-rewrite
edited May 24 at 9:59
Muhammad Anas
1,2233526
1,2233526
asked May 23 at 9:03
DanMarDanMar
213
213
I tried to move the site to the root too but the issue remains. For exampe if you add a product to the cart and then from cart you want to remove the product, the site redirect always to www.domainname.com/# instead to www.domainname.com/path/#
– DanMar
May 23 at 11:38
add a comment |
I tried to move the site to the root too but the issue remains. For exampe if you add a product to the cart and then from cart you want to remove the product, the site redirect always to www.domainname.com/# instead to www.domainname.com/path/#
– DanMar
May 23 at 11:38
I tried to move the site to the root too but the issue remains. For exampe if you add a product to the cart and then from cart you want to remove the product, the site redirect always to www.domainname.com/# instead to www.domainname.com/path/#
– DanMar
May 23 at 11:38
I tried to move the site to the root too but the issue remains. For exampe if you add a product to the cart and then from cart you want to remove the product, the site redirect always to www.domainname.com/# instead to www.domainname.com/path/#
– DanMar
May 23 at 11:38
add a comment |
1 Answer
1
active
oldest
votes
You can try this in .htaccess file for your subfolder:
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f275817%2fmagento-2-base-url-path-issue-custom-theme%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can try this in .htaccess file for your subfolder:
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
add a comment |
You can try this in .htaccess file for your subfolder:
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
add a comment |
You can try this in .htaccess file for your subfolder:
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]
You can try this in .htaccess file for your subfolder:
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]
answered May 23 at 12:26
Saphal JhaSaphal Jha
1,227616
1,227616
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
add a comment |
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
Thanks, I tried with no success.
– DanMar
May 24 at 8:08
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f275817%2fmagento-2-base-url-path-issue-custom-theme%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I tried to move the site to the root too but the issue remains. For exampe if you add a product to the cart and then from cart you want to remove the product, the site redirect always to www.domainname.com/# instead to www.domainname.com/path/#
– DanMar
May 23 at 11:38