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;








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










share|improve this question
























  • 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


















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










share|improve this question
























  • 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














0












0








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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











1 Answer
1






active

oldest

votes


















0














You can try this in .htaccess file for your subfolder:



Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]





share|improve this answer























  • Thanks, I tried with no success.

    – DanMar
    May 24 at 8:08











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
);



);













draft saved

draft discarded


















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









0














You can try this in .htaccess file for your subfolder:



Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]





share|improve this answer























  • Thanks, I tried with no success.

    – DanMar
    May 24 at 8:08















0














You can try this in .htaccess file for your subfolder:



Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]





share|improve this answer























  • Thanks, I tried with no success.

    – DanMar
    May 24 at 8:08













0












0








0







You can try this in .htaccess file for your subfolder:



Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]





share|improve this answer













You can try this in .htaccess file for your subfolder:



Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteCond %THE_REQUEST /subfolder/(S+)
RewriteRule ^ /%1 [L,R]






share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림