Hi,
I'm having a problem with a new install, where for example a link made on Main_Page like so: [[testing]] gets expanded to "/Main_Page?title=testing&action=edit", rather than to what I expect, which is "/testing?action=edit".
Has anyone come across this before? All the menu links seem to be fine. I'm running debian, with:
Apache: 1.3.26 PHP: 4.1.2-7.0.1 (I hope this isn't the problem..)
$wgScriptPath = ""; $wgScript = "$wgScriptPath"; $wgRedirectScript = "/redirect.php"; $wgArticlePath = "/$1";
Thanks for any suggestions!
Graham
This is standard. You can either use the index.php/TITLE syntax or index.php?title=TITLE&action=edit ... syntax. I think this is to allow for &s and ?s to appear in the title.
On Thu, 30 Dec 2004 13:49:54 +0000, Graham Seaman graham@theseamans.net wrote:
Hi,
I'm having a problem with a new install, where for example a link made on Main_Page like so: [[testing]] gets expanded to "/Main_Page?title=testing&action=edit", rather than to what I expect, which is "/testing?action=edit".
Has anyone come across this before? All the menu links seem to be fine. I'm running debian, with:
Apache: 1.3.26 PHP: 4.1.2-7.0.1 (I hope this isn't the problem..)
$wgScriptPath = ""; $wgScript = "$wgScriptPath"; $wgRedirectScript = "/redirect.php"; $wgArticlePath = "/$1";
Thanks for any suggestions!
Graham _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi Jamie
Jamie Bliss wrote:
This is standard.
I really hope not! see below...
You can either use the index.php/TITLE syntax or index.php?title=TITLE&action=edit ... syntax. I think this is to allow for &s and ?s to appear in the title.
On Thu, 30 Dec 2004 13:49:54 +0000, Graham Seaman graham@theseamans.net wrote:
Hi,
I'm having a problem with a new install, where for example a link made on Main_Page like so: [[testing]] gets expanded to "/Main_Page?title=testing&action=edit", rather than to what I expect, which is "/testing?action=edit".
And if I click on the resulting link I DON'T get 'testing' as the page to edit - I get 'Main_Page'! What I want is to eliminate the 'title=' syntax completely (but also to get something that works...)
Cheers Graham
Has anyone come across this before? All the menu links seem to be fine. I'm running debian, with:
Apache: 1.3.26 PHP: 4.1.2-7.0.1 (I hope this isn't the problem..)
$wgScriptPath = ""; $wgScript = "$wgScriptPath"; $wgRedirectScript = "/redirect.php"; $wgArticlePath = "/$1";
Thanks for any suggestions!
Graham _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi Graham
Perhaps your problem is with the way this is set up:
On Thu 30-Dec-2004 at 09:53:02PM +0000, Graham Seaman wrote:
$wgScriptPath = ""; $wgScript = "$wgScriptPath"; $wgRedirectScript = "/redirect.php"; $wgArticlePath = "/$1";
This is what I use to remove index.php in the URIs:
$wgScriptPath = "/index.php"; $wgScript = "$wgScriptPath"; $wgRedirectScript = "/redirect.php"; $wgArticlePath = "/$1";
And this mod_rewrite stuff:
RewriteEngine on RewriteCond %{REQUEST_URI} !^/(stylesheets|uploads|icons|error)/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt RewriteRule ^/(.*) /index.php/$1 [L]
I dunno if this would solve your problem...
Chris
Hi Chris
Chris Croome wrote:
Hi Graham
Perhaps your problem is with the way this is set up:
On Thu 30-Dec-2004 at 09:53:02PM +0000, Graham Seaman wrote:
$wgScriptPath = "";
This is what I use to remove index.php in the URIs:
$wgScriptPath = "/index.php";
I dunno if this would solve your problem...
Well, it helped. What really sorted it was me removing this idiotic rewrite rule I'd inserted while trying to fix the original problem:
# no page? use the main page RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/ /Main_Page
Doh :-( Everything works now. What had me confused is that new links appear in the form /index.php?title=x until they've been edited, and only take the /x form after the first edit.
onwards and upwards.. Graham
Chris
mediawiki-l@lists.wikimedia.org