Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sub-dirs don't work #3

Closed
spiffin opened this issue Jun 11, 2012 · 13 comments · Fixed by #11
Closed

sub-dirs don't work #3

spiffin opened this issue Jun 11, 2012 · 13 comments · Fixed by #11

Comments

@spiffin
Copy link

spiffin commented Jun 11, 2012

Nice work - but sub-directories don't work for me at all (I've tried on 3 separate servers) -- an htaccess issue perhaps?

@quma
Copy link

quma commented Jun 15, 2012

I have the same problem ?

@jasonrobb
Copy link

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

@spiffin
Copy link
Author

spiffin commented Jun 24, 2012

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

@jasonrobb
Copy link

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

@lukemetz
Copy link

Hello,
I was having the same problem.

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

@purplefish32
Copy link
Contributor

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

@purplefish32
Copy link
Contributor

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

purplefish32 added a commit to purplefish32/Pico that referenced this issue Nov 21, 2012
@spiffin
Copy link
Author

spiffin commented Nov 21, 2012

Works for me .. thanks purplefish32.

@the-golem
Copy link

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.

@johnko
Copy link

johnko commented Dec 13, 2012

@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.

@the-golem
Copy link

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

@johnko
Copy link

johnko commented Dec 14, 2012

@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

@sebastian-ruiz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants