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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:39:20+00:00 2026-05-29T10:39:20+00:00

I just started hosting my app on a new domain. I selected a url

  • 0

I just started hosting my app on a new domain. I selected a url forwarding option with my registrar. Which seems to work. example.com didn’t work before (as opposed to the subdomain http://www.example.com) but now it does.

The problem is that if I access the site via example.com and try to login, users.create_login_url(self.request.uri), I go to a blank page. If I go to http://www.example.com the login works fine. In both cases self.request.uri is returning the www subdomain, even though in the first case example.com is still shown in the browser.

I don’t really know much about this stuff. Any tips on where I should go from here?

  • 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-29T10:39:22+00:00Added an answer on May 29, 2026 at 10:39 am

    When accessing the site via “example.com”, self.request.uri is from that domain, which is the domain where the cookie is created. When it then redirects back, it goes to “www.example.com”, which has no cookie, but your site is expecting a user to be logged in.

    Suggestions: use a relative path like / (or webapp2’s uri routing) instead of a full URI, or first redirect to http://www.example.com before doing the login.

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

Sidebar

Related Questions

Just started getting a bunch of errors on our C# .Net app that seemed
Have just started using Visual Studio Professional's built-in unit testing features, which as I
So, I've just started working with a new Joomla site, and something we've added
Just started a site and I have an /img directory on the main domain.
I just started trying out Amazon S3 for hosting my website's images. I'm using
I have an asp.net MVC project hosting a silverlight application. I just started rebuilding
I have a shared hosting account, and I just started using source control locally
I'm new to OOP and frameworks, I've just gotten started with Zend and learned
I'm just getting started with subversion. I have web applications which I need to
I just recently started having a very severe problem when using WebRequest.Create(string url) 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.