Magento 2 redirects url to https but not admin panelHow to disable secure url for adminRedirect to previous URL after admin loginOne VirtualHost, multiple aliases and store access issuesDifferent admin URL for each website - Magento 2.1.1Trouble with admin URLSome of url are redirected to httpsAdmin infinite redirect after trying to change admin URLMagento 2 on https (SSL certificate)URL paths not reflecting url key from admin panelMagento 2 admin panel is down after changing Base URL
Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?
Is TA-ing worth the opportunity cost?
Colleagues speaking another language and it impacts work
As a 16 year old, how can I keep my money safe from my mother?
How to display a duet in lyrics?
How do we avoid CI-driven development...?
Word or idiom defining something barely functional
Generator for parity?
Why are the inside diameters of some pipe larger than the stated size?
How can I tell if a flight itinerary is fake?
Why couldn't soldiers sight their own weapons without officers' orders?
Why should public servants be apolitical?
Double blind peer review when paper cites author's GitHub repo for code
How does The Fools Guild make its money?
Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?
Can a character who casts Shapechange and turns into a spellcaster use innate spellcasting to cast spells with a long casting time?
In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?
Atari ST DRAM timing puzzle
Should I self-publish my novella on Amazon or try my luck getting publishers?
Looking for a new job because of relocation - is it okay to tell the real reason?
Blocking people from taking pictures of me with smartphone
Can you use Shapechange with character feats to Grapple the Tarrasque?
How do I calculate the difference in lens reach between a superzoom compact and a DSLR zoom lens?
Look mom! I made my own (Base 10) numeral system!
Magento 2 redirects url to https but not admin panel
How to disable secure url for adminRedirect to previous URL after admin loginOne VirtualHost, multiple aliases and store access issuesDifferent admin URL for each website - Magento 2.1.1Trouble with admin URLSome of url are redirected to httpsAdmin infinite redirect after trying to change admin URLMagento 2 on https (SSL certificate)URL paths not reflecting url key from admin panelMagento 2 admin panel is down after changing Base URL
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,
for port 443 or
https I have an url like this:
https://subdomain.domain.org/
for http i have:
http://subdomain.domain.org/folder
I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
http://subdomain.domain.org/folder/admin , this link should not be redirected.
Can someone help me to figure out how to do this?
Thank you!
magento2 redirect apache admin-url
add a comment |
I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,
for port 443 or
https I have an url like this:
https://subdomain.domain.org/
for http i have:
http://subdomain.domain.org/folder
I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
http://subdomain.domain.org/folder/admin , this link should not be redirected.
Can someone help me to figure out how to do this?
Thank you!
magento2 redirect apache admin-url
add a comment |
I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,
for port 443 or
https I have an url like this:
https://subdomain.domain.org/
for http i have:
http://subdomain.domain.org/folder
I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
http://subdomain.domain.org/folder/admin , this link should not be redirected.
Can someone help me to figure out how to do this?
Thank you!
magento2 redirect apache admin-url
I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,
for port 443 or
https I have an url like this:
https://subdomain.domain.org/
for http i have:
http://subdomain.domain.org/folder
I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
http://subdomain.domain.org/folder/admin , this link should not be redirected.
Can someone help me to figure out how to do this?
Thank you!
magento2 redirect apache admin-url
magento2 redirect apache admin-url
asked Jul 30 at 2:52
Oscar VazquezOscar Vazquez
368 bronze badges
368 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Please check with below posibilities :
check with your .htaccess ( url rewrite )
check your admin base url.
i.e htaccess :
Options +FollowSymLinks #Include this line if you are using Godaddy hosting
RewriteEngine On
RewriteCond %REQUEST_URI !(.*)subfolder
RewriteRule ^(.*)$ subfolder/$1 [L]
another option :
goto database core_cofig
table
path - admin/url/use_custom
set value 0
path - admin/url/use_custom_path
set value 0
I hope its very helpful to you
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
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%2f283728%2fmagento-2-redirects-url-to-https-but-not-admin-panel%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
Please check with below posibilities :
check with your .htaccess ( url rewrite )
check your admin base url.
i.e htaccess :
Options +FollowSymLinks #Include this line if you are using Godaddy hosting
RewriteEngine On
RewriteCond %REQUEST_URI !(.*)subfolder
RewriteRule ^(.*)$ subfolder/$1 [L]
another option :
goto database core_cofig
table
path - admin/url/use_custom
set value 0
path - admin/url/use_custom_path
set value 0
I hope its very helpful to you
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
add a comment |
Please check with below posibilities :
check with your .htaccess ( url rewrite )
check your admin base url.
i.e htaccess :
Options +FollowSymLinks #Include this line if you are using Godaddy hosting
RewriteEngine On
RewriteCond %REQUEST_URI !(.*)subfolder
RewriteRule ^(.*)$ subfolder/$1 [L]
another option :
goto database core_cofig
table
path - admin/url/use_custom
set value 0
path - admin/url/use_custom_path
set value 0
I hope its very helpful to you
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
add a comment |
Please check with below posibilities :
check with your .htaccess ( url rewrite )
check your admin base url.
i.e htaccess :
Options +FollowSymLinks #Include this line if you are using Godaddy hosting
RewriteEngine On
RewriteCond %REQUEST_URI !(.*)subfolder
RewriteRule ^(.*)$ subfolder/$1 [L]
another option :
goto database core_cofig
table
path - admin/url/use_custom
set value 0
path - admin/url/use_custom_path
set value 0
I hope its very helpful to you
Please check with below posibilities :
check with your .htaccess ( url rewrite )
check your admin base url.
i.e htaccess :
Options +FollowSymLinks #Include this line if you are using Godaddy hosting
RewriteEngine On
RewriteCond %REQUEST_URI !(.*)subfolder
RewriteRule ^(.*)$ subfolder/$1 [L]
another option :
goto database core_cofig
table
path - admin/url/use_custom
set value 0
path - admin/url/use_custom_path
set value 0
I hope its very helpful to you
edited Jul 30 at 13:38
answered Jul 30 at 4:59
Anas MansuriAnas Mansuri
1,3602 silver badges16 bronze badges
1,3602 silver badges16 bronze badges
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
add a comment |
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.
– Oscar Vazquez
Jul 30 at 13:27
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
please check my answer, i updated, one more possibility.., than please flush cache.
– Anas Mansuri
Jul 30 at 13:38
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
its working for my side.
– Anas Mansuri
Jul 30 at 13:45
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.
– Oscar Vazquez
Jul 30 at 14:42
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%2f283728%2fmagento-2-redirects-url-to-https-but-not-admin-panel%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