Hi all,
I just added a new "feature" to the plugins.geany.org website. It is some rewrite rules in an .htaccess file which allow to call specific pages like this:
http://plugins.geany.org/downloads or http://plugins.geany.org/geanygdb
just as examples.
Unfortunately, this will not work for all plugins, since there are some directories lying around in htdocs/:
$ ls -l total 96 drwxr-sr-x 2 209508 geany-plugins 1024 Jan 17 2010 addons/ drwxrwsr-x 2 dmaphy geany-plugins 2048 Oct 16 04:05 content/ -rw-rw-r-- 1 dmaphy geany-plugins 4286 Jul 31 16:17 favicon.ico drwxrwsr-x 2 dmaphy geany-plugins 2048 Jul 31 21:46 geany-plugins/ drwxr-sr-x 2 137082 geany-plugins 1024 Sep 15 2008 geanydoc/ drwxrwsr-x 2 dmaphy geany-plugins 1024 Jul 31 20:10 geanylua/ drwxr-sr-x 2 137082 geany-plugins 1024 Sep 15 2008 geanyprj/ drwxr-sr-x 2 137082 geany-plugins 1024 Sep 15 2008 geanyvc/ drwxrwsr-x 2 dmaphy geany-plugins 1024 Jul 31 16:17 images/ -rw-rw-r-- 1 dmaphy geany-plugins 2606 Oct 8 23:14 index.php drwxr-sr-x 2 209508 geany-plugins 2048 Jan 17 2010 spellcheck/ drwxrwsr-x 2 dmaphy geany-plugins 1024 Sep 4 22:13 stylesheets/
I excluded those plugins with an existing directory from the rewrite. Thus, e.g. for the geanyvc plugin, the described behaviour will not work:
http://plugins.geany.org/geanyvc/
The question for those plugins having a directory lying around there is: Do you still need that directory or would it be possible to delete it and remove the exclude from the rewrite rules? Then your plugin would also have the "beauty URL".
Thanks very much in advance for your feedback and your support. :)
Best Regards, Dominic
On Sat, 16 Oct 2010 21:17:39 +0200 Dominic Hopf dmaphy@googlemail.com wrote:
The question for those plugins having a directory lying around there is: Do you still need that directory or would it be possible to delete it and remove the exclude from the rewrite rules? Then your plugin would also have the "beauty URL".
Requestion ist, where are these folder located?
Cheers, Frank
Am Sonntag, den 17.10.2010, 02:19 +0200 schrieb Frank Lanitz:
On Sat, 16 Oct 2010 21:17:39 +0200 Dominic Hopf dmaphy@googlemail.com wrote:
The question for those plugins having a directory lying around there is: Do you still need that directory or would it be possible to delete it and remove the exclude from the rewrite rules? Then your plugin would also have the "beauty URL".
Requestion ist, where are these folder located?
In the document root of the plugins.geany.org site, which actually is on sourceforge: /home/groups/g/ge/geany-plugins/htdocs/.
But wait... with SVN rev 1663 I slightly modified the rewrite rules again to show up some possibilities which work at present:
http://plugins.geany.org/geanygdb.html http://plugins.geany.org/geanygdb
http://plugins.geany.org/site/geanygdb.html http://plugins.geany.org/site/geanygdb
http://plugins.geany.org/index.php?site=geanygdb (this one is actually the default without any rewrite)
Yes, this maybe looks a bit weird. So the regexes are. For those with the "site" in the URL, it wouldn't be necessary to delete folders anymore, even if Enrico already did so for the addons and spellcheck plugin (thanks, anyway).
Thus, maybe someone of you wants to drop his 2 cents about this. And yes, I know, mod_rewrite is evil. :)
Best Regards, Dominic