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 9004943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:01:05+00:00 2026-06-16T01:01:05+00:00

I have a simple folder structure for my multilingual website on localhost Default.aspx images

  • 0

I have a simple folder structure for my multilingual website on localhost

Default.aspx
images
css
js
en/Default.aspx
en/ContactUs.aspx
....
ar/Default.aspx
ar/xxxxx.aspx

Problem i am facing is very strange to me. i have a simple code to check the browser language set by user and accordingly i redirect user to English or Arabic version of website.

Irrecpective of what code i wring it always redirects me to English version of website and executes the en/Default.aspx page

Even commenting all the code in Default.aspx page it still redirect it to the en/Default.aspx page. while it should not do any thing.

I have set Default.aspx as Set As Default Page but it doesn’t make any difference. I removed even global.asa that had routing code, i also removed all the compiler code related to this website on local host but it still keeps doing the same thing.

I have checked web.config file there is nothing wrong with that.

Even after removing the Default.aspx page it sill redirects me to en/Default.aspx i am frustrated with this problem.

I am not sure what is wrong. I re-started system with no result.

I am using visual studio 2010 for asp.net web form project.

http://localhost:49831/AlShindagah/

ALWAYS take me to below URL

http://localhost:49831/AlShindagah/en/Default.aspx

CODE of Default.aspx before i deleted it

public partial class DefaultMain : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        //switch (Session["lang"].ToString().ToLower())
        //{
        //    case "en-us":
        //        Response.RedirectPermanent("~/en/Default.aspx");
        //        break;
        //    case "ar-ae":
        //        Response.RedirectPermanent("~/ar/Default.aspx");
        //        break;
        //    default:
        //        Response.RedirectPermanent("~/en/Default.aspx");
        //        break;
        //}

    }

    //// Localization and Globalization code
    //protected override void InitializeCulture()
    //{
    //    String lang = Request["Language"];

    //    Session["lang"] = Helper.DetectLanguage(lang);
    //    //Set Direction of page LTR/RTL
    //    if (Session["lang"] == "ar-AE")
    //    {
    //        Session["PageDIR"] = "rtl";
    //    }
    //    else
    //    {
    //        Session["PageDIR"] = "ltr";
    //    }

    //    base.InitializeCulture();
    //}
}
  • 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-06-16T01:01:06+00:00Added an answer on June 16, 2026 at 1:01 am

    You had previously used Response.RedirectPermanent("~/en/Default.aspx");. A complying browser would remember this and always redirect you there.

    Clear your browser cache and try again 🙂

    As a side note, use Redirect instead of RedirectPermanent. If I’m accessing http://www.mysite.com from a browser and http://www.mysite.com RedirectPermanent‘s me to http://www.myothersite.com, a complying browser would remember this and for all future requests to http://www.mysite.com, it would call http://www.myothersite.com.

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

Sidebar

Related Questions

Trying to get a simple test perl script working. Have the following files/folder structure
I have simple application with following folder structure: ProjFolder |-----src |----------packagename |---------------{sourcefiles} |----------META-INF |---------------{beans.xml}
I have created a simple app and this is my folder structure lib/book.rb lib/user.rb
I have a simple maven parent project containing <modules> <module>myGrailsPlugin<module> <module>someVanillaMavenProject<module> </modules> Folder structure
I have an object model like that: Folder - simple structure with name etc.
I have a single-person single-folder mercurial repository. The directory structure is simple: P104 lecture_notes
My situation is simple. I have this in my program: File folder = new
I am creating simple app on Silverlight 4. In folder of View I have
For example I have a website that points to a page like this: http://www.mysite.com/folder/file
Ok I have been searching like crazy for this I think simple problem. I

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.