Topic on Manual talk:Short URL/Apache

Sidebar and Images with Short URL

1
Sojourner9 (talkcontribs)

Followed the instructions for apache - wound up with a mess of formatting and no images.


If this helps others - had to do the following to get it to work:

In the apache2.conf file:

## don't rewrite load.php, api.php, and other php scripts.  this got the sidebar and CSS/formatting to work
RewriteRule ^/?wiki.*\.php - [L]

## don't rewrite images/icons in the resources folder.  this got icons to work
RewriteRule ^/?wiki/resources - [L]

## rewrite to short url
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L,QSA]

I suspect I'll need to do a "not images" type of rule also, but haven't uploaded any images to this wiki yet.