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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:56:11+00:00 2026-06-18T12:56:11+00:00

While writing my login system, I came across a little issue when authorizing an

  • 0

While writing my login system, I came across a little issue when authorizing an user with Facebook…

After someone clicks the ‘Login with Facebook’ button and signs in/authorizes my app, Facebook redirects back to my site, with a series of $_GET variables, as normal. The only issue is I’d like to check if one of those variables are set in order to check the status of the Facebook login.

When I try pulling the $_GET var, it ‘says’ it doesn’t exist. The issue is with my using mod_rewrite to clean up the apparence of my url:

#RewriteRule ^([A-Za-z0-9]+)/?$ ?a=b&content=$1 [L]
#RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9]+)/?$ ?a=b&content=$1&page=$2 [L]

This turns:
www.mysite.com?content=login&page=2 into
www.mysite.com/login/2

So my url of www.mysite.com/content?state=[...]&code=[...]&...etc must be confusing the variables Facebook assigns, with the to be rewritten $_GET vars.

Same thing happens with a url with both the content and page set. eg:
www.mysite.com/content/page?state=......

What would be the best way of solving this? I know I could find another way to show a confirmed Facebook login, but this will continue to be an issue for other situations in the future, I’m sure.

Thanks in advance.

  • 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-18T12:56:12+00:00Added an answer on June 18, 2026 at 12:56 pm

    Try using [L,QSA] instead of just [L].

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

Sidebar

Related Questions

While writing a login system for a web project Im working on I came
While writing my own adapter that extends the ArrayAdapter class, I came across the
While writing an encryption method in JavaScript, I came to wondering what character encoding
I have some Java Swing login panel. When user click login button, extensive DB
I'm writing a script to login to Hotmail. It asks the user to enter
While writing some C code, I decided to compile it to assembly and read
While writing code in a file that would comprise of PHP, HTML, CSS &
While writing code, it is pretty common to request a page with an appended
While writing a card shuffling algorithm I realized that there are 52! ~= 2^225
While writing a .jsp file, can i include all the html5 tags in it

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.