Hey NG. I tried this:
http://wiki.local/wiki/api.php?action=query&format=xml&meta=userinfo...
But I get only an Forbidden Exception:
API must be accessed through the primary script entry point.
I have no idea. Have you one?
Sincerely Alex
Aelxander Schwarz schreef:
Hey NG. I tried this:
http://wiki.local/wiki/api.php?action=query&format=xml&meta=userinfo...
But I get only an Forbidden Exception:
API must be accessed through the primary script entry point.
I have no idea. Have you one?
Sincerely Alex
Do you have any rewrite rules or stuff like that? Please ensure that you're accessing api.php at its proper URL (i.e. "where it actually is", without the rewrites). You can check this by editing a page and looking at the URL, which will be something like http://wiki.local/w/index.php?action=edit&title=Foo . Replace index.php with api.php and see if that works. If it still doesn't, you need to 'expose' your wiki root directory as follows:
- Make the wiki root (the directory that contains index.php and api.php) accessible as e.g. http://wiki.local/w/ - Use an Alias or a rewrite rule to rewrite /wiki/Foo to /w/index.php?title=Foo
Roan Kattouw (Catrope)
On Mon, Jul 14, 2008 at 11:55 AM, Aelxander Schwarz Leetus@web.de wrote:
Hey NG. I tried this:
http://wiki.local/wiki/api.php?action=query&format=xml&meta=userinfo...
But I get only an Forbidden Exception:
API must be accessed through the primary script entry point.
I have no idea. Have you one?
Sincerely Alex
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
What webserver are you using?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
What webserver are you using?
This is running on my Linux server Produkt Version MediaWiki 1.12.0 PHP 5.1.2 (apache2handler) MySQL 5.0.18
mediawiki-api@lists.wikimedia.org