Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6249073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:10:20+00:00 2026-05-24T13:10:20+00:00

I have MVC3 application with SSL. I want particular page URL should always add

  • 0

I have MVC3 application with SSL. I want particular page URL should always add Https. Can someone tell me how to do this. Below is the Route in Global file.

 routes.MapRoute("root22",
                "paybill",
                new { controller = "Home", action = "PayBill" });

One more thing if my URL has https in front than should all the paths in the page also use https or not necessary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:10:21+00:00Added an answer on May 24, 2026 at 1:10 pm

    You don’t need to mess with the routing to accomplish this. Just use the [RequireHttps] attribute on your controller/actions.

    [RequireHttps]
    public ViewResult YourAction()
    

    If it can, it will redirect to https. Your outgoing links don’t have to use https, but when loading javascript, css, images, etc. then it should otherwise the user may get a mixed content security warning.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MVC3 application in which i want to set a timespan to
I have an MVC3 application, I know that for relative paths, I can use
I have an MVC3 application that has a custom HandleErrorAttribute so that I can
I have an MVC3 application, and I want to upgrade to MVC4 after its
I have a mvc3 application hosted say on www.mywebsite.com , how can i customize
I have developed a MVC3 application in that I want use the Check boxlist
I am developing an MVC3 application and have been wondering about the following. Should
We have an MVC3 application in IIS7: http://mydomain.com/myapplication/ What would be the relative URL
Can I have an MVC3 application in ~/priv/, and another in ~/pub? It seems
I have a simple MVC3 application that I want to retrieve some configuration details

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.