February 23, 2011 at 1:57 pm #71
I'm using the Easy Folder Listing Pro Plugin, made 'dir' the 'Location of the Listing Folder' and it's working fine. But as soon as I switch on 'Use Apache mod_rewrite' in the Joomla Global configuration I get the error 'you don't have permission to access /documenten/ on this server'.
Typing in index.php by hand in the URL solves it.
The directory dir is set to '777' to see if it made a difference and the menuitem 'dir' is public. So I guess it isn't a permission issue.
I'm using Joomla 1.5.22.
I hope someone can help me out here. The use of mod_rewrite is essential for my website.
rgds, EricFebruary 23, 2011 at 3:04 pm #972
Thanks for purchasing and using my plugin. From the description you give above, I think the solution may lie in the .htaccess file. However, I am not an expert in editing that. Nonetheless, you may have to give some more information. So far, I understand that you have a folder in your root joomla installation called 'dir', which you specified in your "Location of the Listing Folder". So, your files would be accessed via: http://yoursite.com/dir. Is that correct? But if that is the case, where does '/documenten/' come from?
By the way, do you have a web address of the page where this is on so that I can see it happening for myself?February 28, 2011 at 9:43 am #973
I don't know what changed. But I can access the folder now. It had definitely something to do with the .htaccess file, of which I've learned over the couple of days, I'm no expert either. And that's an understatement…
I've installed the new version of the plugin now and will go from there.
Thank you for replying.
rgds, EricMarch 1, 2011 at 12:27 pm #974
the plug-in has proven itself as being a life-saver. Almost ;)) I've encoutered two issues that I need to solve. Maybe you can help me out or point me int the right direction.
– I've got some files without a file-extension. How do I list these?
– Is it possible that a link to a (sub)directory opens the list with the list folded out on this particulair (sub)folder?
rgds, EricMarch 1, 2011 at 2:47 pm #975
Thanks for your compliments and questions. For files without file extensions, I am not sure how you would list them, because Jomla's JFolder::files function uses PHP's readdir function to list the files, and it seems as though if readdir finds a file without an extension, it replaces the first character with a dot. That seems to be its standard procedure. I can't change that. I would have to write code to specifically handle that, or maybe even write my own version of JFolder::files to handle it. However, what kind of files are you listing that don't have file extensions? Files available on a web server should have file extensions.
Honestly, I don't quite understand your second question. If you asking about automatically having the listing expanded, either change Collapse Subfolders to No in the Plugin Manager, or set collapse='0' when you place it in the Article.
Hope this helps.March 1, 2011 at 6:39 pm #976
thanks for your reply. Regarding the first question I asked, the file's without an extension, I've changed the few files that there were and gave them an extension. I agree that files used online should have file extensions. I found out that the files without extension were all .msg files. So I renamed them. So this issue is solved.
Let me clarify my second question: I've used you're plugin to list app. 5000 files, in 250+ directories and subdirectories, containing in total over 7GB of data. I'm still very pleased that it worked flawless :)) But the problem is: in a PDF document there are hyperlinks to all these files. As long as the links are refering to files, it works perfect. But on occasions, there are hyperlinks in the PDF that refer to directories with the intention to show a list of files that are present in this directory. Of course you can't hyperlink to a directory. So the server returns a 'you don't have permission to access' error.
My question was: is it in some way possible with your plugin that if link to a directory, the plugin shows a list of the files inside?
Googeling around I'm more and more convinced that this isn't possible. But maybe you know a solution?
The topic ‘mod_rewrite causes 'You don't have permission to access /dir/ on this server'’ is closed to new replies.