There is some issue on my site when users visit directly http://spcrepsite.com (without www.) it works accurately, But when http://www.spcrepsite.com (include www.) it will show (homepage) that page without login which is not correct.

If the user did not log in it should show a login page.

If anyone directly opens http://www.spcrepsite.com it shows the following message but show all the content

Please login first

  • Hi Adeel. I don't see the problem you are saying. I can see the exact same page with the login form in both cases. Can you clarify what is the problem?
    – FFrewin
    Apr 29, 2021 at 18:41
  • Welcome to JSE Adeel, please take our tour and respond to FFrewin's request by editing your question. Apr 29, 2021 at 21:26

1 Answer 1


I encountered something similar in firefox where the cache was different for each domain name. Perhaps if you clear your browser caches for both sites www and non-www it will appear correctly for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.