Bug 10138 - Need to either get .htaccess turned on, or these bits added to apache vhosts conf
Summary: Need to either get .htaccess turned on, or these bits added to apache vhosts ...
Alias: None
Product: freedesktop.org
Classification: Unclassified
Component: Account Modification Requests (show other bugs)
Version: unspecified
Hardware: Other All
: high major
Assignee: fd.o Admin Massive
QA Contact:
URL: http://openfontlibrary.org
Depends on:
Reported: 2007-02-28 23:22 UTC by Jon Phillips
Modified: 2007-07-24 13:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Jon Phillips 2007-02-28 23:22:18 UTC
Hiya, the following changes will allow our project to have pretty URLS like http://openfontlibrary.org/media rather than ugly ones like http://openfontlibrary.org/?ccm=/media

There are two courses of action. I would ideally like to have .htaccess support so that I can catch any bots and change these lovely things without having to trouble you all, but otherwise, please enable the second option. Oh, the wiki bits are for making wiki paths easy to use and non-ugly as well. THX!

 I would like to either get .htaccess support enabled on Open Font Library 


add this bit to the Open Font Libraries vhost <Directory /> in the vhosts conf:

# anything that contains a dot without a colon should be left alone
RewriteRule ^wiki/(edit)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/insert/(.*)$ /wiki/index.php?action=edit&title=$1 [L,QSA]
RewriteRule ^wiki/(watch)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(delete)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(protect)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(history)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]

RewriteRule ^wiki/[^:]*\. - [L]
# anything that contains a slash without a colon should be left alone
RewriteRule ^wiki/[^:]*\/ - [L]
# redirect to main page
RewriteRule ^wiki/*$ /wiki/index.php?title=Main_Page [L,QSA]
# anything else is to be treated as a title
RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
# anything that contains a slash is to be left alone

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?ccm=/$1 [L,QSA]
Comment 1 Jon Phillips 2007-03-05 10:40:52 UTC
Where are we at on this bug? It would be great to get this accomplished. Can I help out more?
Comment 2 Jon Phillips 2007-04-01 19:18:04 UTC
First, to make the wiki work with short URLS, similar to bug 10139:

Ok, I figured out how to get the wiki to redirect properly with ALIAS.

Here is the generic overview:


We need to do this:

1.) mv /srv/openfontlibrary.freedesktop.org/openfontlibrary_web/wiki /srv/openfontlibrary.freedesktop.org/openfontlibrary_web/w

2.) Add this to the vhosts for openfontlibrary.freedesktop.org above (and outside) the <Directory />:

Alias /wiki /srv/openfontlibrary.freedesktop.org/openfontlibrary_web/w/index.php

3.) Update /srv/openfontlibrary.freedesktop.org/openfontlibrary_web/w/LocalSettings.php

Change the following vars to: 

$IP = "/srv/openfontlibrary.freedesktop.org/www/w";
$wgScriptPath       = "/w";
$wgArticlePath      = "/wiki/$1";

Then test and hope that my testing on my own system worked :) Ping me if problems.


That should then allow our wiki to have pretty URLs...thx...and it should be much much faster with ALIAS....

I will figure out a faster solution to make cchost's URLs work as well (the engine that powers openfontlibrary) and then post that as a comment here.

Comment 3 Jon Phillips 2007-04-01 20:27:36 UTC
Ok, ccHost is not currently setup to use Alias, could we please get at least this snippet added to the conf/vhosts file for openfontlibrary so we can have pretty-urls:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?ccm=/$1 [L,QSA]


Comment 4 Jon Phillips 2007-04-04 15:08:08 UTC
Any update?
Comment 5 Jon Phillips 2007-04-16 23:59:40 UTC
Sorry to pester, is there anyway I can help move this along?
Comment 6 Daniel Stone 2007-07-24 13:27:39 UTC
not a problem on twisp

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.