List Info

Thread: mod_rewrite breaks all image paths




mod_rewrite breaks all image paths
user name
2006-02-27 15:52:25
I have no problems getting MediaWiki to work together with
mod_rewrite.

But my settings break all image paths !

I'm in a shared hosting environment.
The path to my MediaWiki installation is like:

$IP = "/home/1/m/myName/wiki";

in my .htaccess I use the following rewrite rule
RewriteRule ^myWikiName/?(.*)$ /wiki/index.php?title=$1
[L,QSA]

Any settings I try will either add
"/home/1/m/myName/" to the image path,
or make MediaWiki try to create a wiki page with the same
name as the
image. I have tried to set a $wgUploadPath that is both
inside or outside
the Wiki directory, none of them removes the image path
problems.

Are these problems inherent because Mediawiki is installed
deep down in a
folder hierarchy on my web server, or can I solve the by
modifying
LocalSettings and .htaccess ?


--
Harald Groven 
University of Tromsų
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )