[pmwiki-users] Invalid attachment links

Keith Constable kccricket at gmail.com
Fri Sep 16 20:56:39 CDT 2005


I just recently installed PmWiki v2.0.6 for the first time.  I seem to have an
issue where any files I upload and then reference to with an Attach: gives me a
broken hyperlink/imagelink.

Lets say I upload a file in Main called cricket.png.  I then place
"Attach:cricket.png" in a page called Main/NewPage.  It generates the following
HTML for the attachment:
<div><img src='http://uploads/Main/cricket.png' alt='' title='' /></div>

Gee, where's my domain in that link?

Here's my config.php:
<?php if (!defined('PmWiki')) exit();
$ScriptUrl = "http://{$_SERVER['HTTP_HOST']}";
$PubDirUrl = "http://{$_SERVER['HTTP_HOST']}/pub";
$EnablePathInfo = 1;
$EnableGUIButtons = 1;
$EnableUpload = 1;
$SpaceWikiWords = 1;
$WikiWordCountMax = 1;
if ($action == 'rss' || $action == 'rdf') include_once('scripts/rss.php');
include_once('cookbook/sysdiff.php');
if (@$_SERVER['REMOTE_USER']) {
$Author = $_SERVER['REMOTE_USER'];
} else { exit('Security Violation'); }
## End config.php

Here's my .htaccess:
DirectoryIndex pmwiki.php
RewriteEngine On
RewriteRule ^([^/a-z].*) /pmwiki.php?n=$1 [QSA,L]
## End .htaccess


I'm sure there's a problem with my setup ;)

I wasn't able to find a variable in the PmWiki.org documentation to control the
url of the uploads folder.  I also (obviously) wasn't able to find anybody else
on this list with the same problem.  "http", "uploads", and "attach" are very
common words.

Any ideas?





More information about the pmwiki-users mailing list