GithubHelp home page GithubHelp logo

sub-dirs don't work about pico HOT 13 CLOSED

picocms avatar picocms commented on August 17, 2024
sub-dirs don't work

from pico.

Comments (13)

quma avatar quma commented on August 17, 2024

I have the same problem ?

from pico.

jasonrobb avatar jasonrobb commented on August 17, 2024

What are your symptoms? If you can give more specifics about what you're seeing, that would help. Thanks!

from pico.

spiffin avatar spiffin commented on August 17, 2024

Hello Jason

I have a basic installation here: http://pico.spiffin.net - using the default htaccess file.

http://pico.spiffin.net/sub - throws a 404

http://pico.spiffin.net/sub/page - throws a 404

http://pico.spiffin.net/content/sub/index.txt - displays the text file

If I throw a test file (test.html) into the sub directory:

http://pico.spiffin.net/sub/test.html - throws a 404

http://pico.spiffin.net/content/sub/test.html - displays the html file

So .. either htaccess isn't rewriting properly .. or something else?

BTW the above is running on Apache 2 & PHP 5.3

from pico.

jasonrobb avatar jasonrobb commented on August 17, 2024

(Pardon my belated reply here.) Spiffin, is there any chance you could share your repository?

from pico.

lukemetz avatar lukemetz commented on August 17, 2024

Hello,
I was having the same problem.

Adding "Options +FollowSymLinks" to my .htaccess file seemed to do the trick.

from pico.

purplefish32 avatar purplefish32 commented on August 17, 2024

I am having the same issues as @spiffin with a straight git clone of the repo
I tried adding "Options +FollowSymLinks" to my .htaccess file, setting a base url (http://localhost/user/Pico/), setting all files to 777, still no luck
I am running a Debian box

from pico.

purplefish32 avatar purplefish32 commented on August 17, 2024

Found the cluprit :

if($url) $file = strtolower(CONTENT_DIR . $url);

should be :

if($url) $file = CONTENT_DIR . $url;

On linux boxes urls are case sensitive so /Pico != /pico

Plus if you just do a stupid git clone the default folder starts with an uppercase letter

Will do a pull request

from pico.

spiffin avatar spiffin commented on August 17, 2024

Works for me .. thanks purplefish32.

from pico.

the-golem avatar the-golem commented on August 17, 2024

Forgive me if posting on a closed bug is improper. I'm having the same issues that spiffin was having. I've applied the multicase fix proposed by purplefish32, and added +FollowSymLinks to my .htaccess file (as suggested by lukemetz), but neither have solved my issue. Like spiffin, I can navigate to the text files in a similar fashion.

I have also confirmed through phpinfo() that mod_rewrite is indeed enabled.

I don't know if that would have any impact on anything, but I should probably point out that this is installed on my local Scientific Linux 6 server, which is behind a cable "modem", and I've set up a dynamic dns subdomain through freedns.afraid.org in order to access the server remotely.

The site is available here: http://golem.pwnz.org/pico

Thanks.

from pico.

johnko avatar johnko commented on August 17, 2024

@the-golem If you're running Apache httpd, did you set AllowOverride All in your host/virtual host configuration? You may need to tweak the AllowOverride if you don't want to let .htaccess files override other parameters.

from pico.

the-golem avatar the-golem commented on August 17, 2024

@johnko Thank you, that did it.I didn't even think about checking that option. Now I'll know better for next time.

from pico.

johnko avatar johnko commented on August 17, 2024

@the-golem No problem :)
FWIW, I had the same issue and figured it out, but thought it was just me so I never posted about it :p

from pico.

sebastian-ruiz avatar sebastian-ruiz commented on August 17, 2024

@the-golem I'm still running into this issue. Have a look here: http://vexis.hostt.net/pico/

from pico.

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.