Redirect user to HTTPSAre HTTPS URLs encrypted?Redirect HTTP to HTTPS on default virtual host without ServerNameWhy is ServerName not having any effect?.htaccess http to https AND mvc query stringApache22: how to redirect a dir to https?Redirect a virtualhost http & https to another virtualhost serverApache not redirecting correctly http to httpsApache Virtual Host with Angular Fullstack (NodeJS) App 307 Redirecthow to redirect one domain to another without .htaccessGodaddy URL redirect from HTTP to HTTPS

Accidentally cashed a check twice

What is the purpose of building foundations?

Personalization conditions switching doesn`t work in Experience Editor (9.1.0, Initial Release)

What is the right way to float a home lab?

Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?

Regarding eBGP Multipath

Can Green-Flame Blade be cast twice with the Hunter ranger's Horde Breaker ability?

Why were the Night's Watch required to be celibate?

Movie where a boy is transported into the future by an alien spaceship

Do adult Russians normally hand-write Cyrillic as cursive or as block letters?

How could a possessed body begin to rot and decay while it is still alive?

Poisson distribution: why does time between events follow an exponential distribution?

How to make thick Asian sauces?

Linux tr to convert vertical text to horizontal

Did Darth Vader wear the same suit for 20+ years?

Is the capacitor drawn or wired wrongly?

Side by side histograms

Bent spoke design wheels — feasible?

What's the correct term for a waitress in the Middle Ages?

The term for the person/group a political party aligns themselves with to appear concerned about the general public

Do I include animal companions when calculating difficulty of an encounter?

Count down from 0 to 5 seconds and repeat

Is it a problem that pull requests are approved without any comments

Does any lore text explain why the planes of Acheron, Gehenna, and Carceri are the alignment they are?



Redirect user to HTTPS


Are HTTPS URLs encrypted?Redirect HTTP to HTTPS on default virtual host without ServerNameWhy is ServerName not having any effect?.htaccess http to https AND mvc query stringApache22: how to redirect a dir to https?Redirect a virtualhost http & https to another virtualhost serverApache not redirecting correctly http to httpsApache Virtual Host with Angular Fullstack (NodeJS) App 307 Redirecthow to redirect one domain to another without .htaccessGodaddy URL redirect from HTTP to HTTPS






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















This is my configuration:



<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>


It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



Not Found
The requested URL / was not found on this server.


When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).










share|improve this question






















  • Name servers have the correct information?

    – Sami Kuhmonen
    Mar 24 at 13:22











  • @SamiKuhmonen Yeah, I checked it again, but everything is correct. As I said, everything worked well, but one day I open web through http and I got this error without any redirect.

    – Alex
    Mar 24 at 14:36

















0















This is my configuration:



<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>


It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



Not Found
The requested URL / was not found on this server.


When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).










share|improve this question






















  • Name servers have the correct information?

    – Sami Kuhmonen
    Mar 24 at 13:22











  • @SamiKuhmonen Yeah, I checked it again, but everything is correct. As I said, everything worked well, but one day I open web through http and I got this error without any redirect.

    – Alex
    Mar 24 at 14:36













0












0








0








This is my configuration:



<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>


It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



Not Found
The requested URL / was not found on this server.


When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).










share|improve this question














This is my configuration:



<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>


It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



Not Found
The requested URL / was not found on this server.


When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).







apache https virtualhost






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 24 at 13:21









AlexAlex

167




167












  • Name servers have the correct information?

    – Sami Kuhmonen
    Mar 24 at 13:22











  • @SamiKuhmonen Yeah, I checked it again, but everything is correct. As I said, everything worked well, but one day I open web through http and I got this error without any redirect.

    – Alex
    Mar 24 at 14:36

















  • Name servers have the correct information?

    – Sami Kuhmonen
    Mar 24 at 13:22











  • @SamiKuhmonen Yeah, I checked it again, but everything is correct. As I said, everything worked well, but one day I open web through http and I got this error without any redirect.

    – Alex
    Mar 24 at 14:36
















Name servers have the correct information?

– Sami Kuhmonen
Mar 24 at 13:22





Name servers have the correct information?

– Sami Kuhmonen
Mar 24 at 13:22













@SamiKuhmonen Yeah, I checked it again, but everything is correct. As I said, everything worked well, but one day I open web through http and I got this error without any redirect.

– Alex
Mar 24 at 14:36





@SamiKuhmonen Yeah, I checked it again, but everything is correct. As I said, everything worked well, but one day I open web through http and I got this error without any redirect.

– Alex
Mar 24 at 14:36












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fstackoverflow.com%2fquestions%2f55324224%2fredirect-user-to-https%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f55324224%2fredirect-user-to-https%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

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript