Code Monkey home page Code Monkey logo

Comments (7)

tleb avatar tleb commented on July 29, 2024

Ok, I found the issue. The class does not support the above case (script in folder while request is made from above folder). I am looking at what could be done to the class to improve this.

(The entire problem comes from getCurrentUri().)

from router.

tleb avatar tleb commented on July 29, 2024

A comment line 332 says allows one to run the router in a subfolder. This is false. 👅

from router.

bramus avatar bramus commented on July 29, 2024

Hi tleb,

The script does work fine in a subfolder, as long as the .htaccess and and index.php file are in the same folder.

I guess you'll have to fiddle around with RewriteBase in your .htaccess to get it working.

Regards,
Bramus.

from router.

tleb avatar tleb commented on July 29, 2024

@bramus I don't really see how RewriteBase can help me. What should I modify in the above files to make it work?

from router.

bramus avatar bramus commented on July 29, 2024

Place your index.php and .htaccess in the same folder

from router.

tleb avatar tleb commented on July 29, 2024

My current configuration allows me to let users access files in the folder (would be the public/ folder in most framework), this is why I have my files in this configuration.

Could you look at #14 to allow me to adapt the class to my set-up?

from router.

bramus avatar bramus commented on July 29, 2024

Merged #14. Closing this one.

from router.

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.