Code Monkey home page Code Monkey logo

Comments (13)

mhaas avatar mhaas commented on July 17, 2024 1

Hi there,

did you guys install the htaccess correctly? It may require some fiddling. All requests must go through index.php which then knows how to deal with paths like /login/.

from fbwlan.

salmanansari avatar salmanansari commented on July 17, 2024 1

Hi Micheal,

Thanks for the prompt response. I got the issue resolved. Thanks a ton for the hint. I must had missed the .htaccess installation part. Now its working 👍

from fbwlan.

mhaas avatar mhaas commented on July 17, 2024

Hey,

please refresh my memory: what's the "fake login part"? The part where you simply provide a password?

That should simply redirect you to back to wifidog: https://github.com/mhaas/fbwlan/blob/master/handlers/fb_handlers.php#L312

from fbwlan.

1xs avatar 1xs commented on July 17, 2024

hI, what meant is in your description to test FB and use : htp://myurl/login?gw_id=foo&gw_address=localhost&gw_port=8080
that gives me a 404.
I did not even get to the part of the router.

from fbwlan.

mhaas avatar mhaas commented on July 17, 2024

Hey there,

I am afraid I can't quite follow. Can you give me a detailed rundown of what you are trying to achieve, what your results are and what you expected to see instead?

from fbwlan.

1xs avatar 1xs commented on July 17, 2024

Hi Michael,

what i'm trying to achieve is being able to modify a
router as hotspot where guests need to checkin through facebook in order
to get access. from there i'll need to look how i can capture the users
but that's phase 2.

From what i understand in your description is that
installing the files on a webserver needs to be done first. So that's
what i did. In moved all the files including the fb sdk and flight to my
webserver. Then in your description that would be step 1. Further on to
test of that went well you can try the link you provided which looks
like:

http://example.xyz/login?gw_id=foo&gw_address=localhost&gw_port=8080

And
just there it is where i got stuck. Because this link gives me a 404
error. So i didn't even read on or do something else because of this
error. cause i'm afraid that when i'm done it still doesn't work.

Is
there something in this link that should be different?

I hope you have
an answer on this one.

Greetz from the Netherlands

Rob

Michael Haas
schreef op 2016-04-23 10:33:

Hey there,

I am afraid I can't
quite follow. Can you give me a detailed rundown of what you are trying
to achieve, what your results are and what you expected to see instead?

You are receiving this because you authored the thread.

Reply to this email directly or view it on GitHub [1]

Links:

[1]
#15 (comment)

from fbwlan.

salmanansari avatar salmanansari commented on July 17, 2024

Hi Micheal,

I am also facing the same issue. Actually the issue is that we can not access the 'http://example.xyz/login?gw_id=foo&gw_address=localhost&gw_port=8080' URL as it says 404 error when accessing the URL. Where we have to define 'login' to use it?

from fbwlan.

1xs avatar 1xs commented on July 17, 2024

@salmanansari can you tell me what you did in the .htaccess file? mine looks like this where the total script i in a subfolder of root called FB.
AddDefaultCharset UTF-8
RewriteEngine On

RewriteBase / is required to prevent endless internal redirects

Note: http://stackoverflow.com/a/12106419

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule ^(.*)$ index.php [QSA,L]

from fbwlan.

salmanansari avatar salmanansari commented on July 17, 2024

Hi @1xs,

Change your .htaccess file with below commands and then try:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Kindly make sure to rename htaccess to .htaccess

from fbwlan.

1xs avatar 1xs commented on July 17, 2024

Great!! thx. so now I can continue to configure the router.

from fbwlan.

salmanansari avatar salmanansari commented on July 17, 2024

Great if that also worked for you. I am having issues working with wifiDog. I also have opened in issue while configuring wifiDog on DDWRT. If you have any luck then do ping me so I can also move forward with it :)

from fbwlan.

salmanansari avatar salmanansari commented on July 17, 2024

hey @1xs ,

Did you get any luck setting up the router with wifiDog?

from fbwlan.

selcukv avatar selcukv commented on July 17, 2024

Although I changed the file name to .htaccess and rewrite rules, no success. I still get 404 error.

What else can be its reason?

from fbwlan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.