Hi,
I would like to use Media Wiki 1.3.1 for a project in Japanese, and my friend has just installed it successfully.
However, as I try to edit the Main Page and save it, it always return to the preceding version.
Does this problem have anything to do with the .htaccess file ?
please advise. thank you very much in advance.
Hendry
ps: this is the .htaccess we have right now.
------------------------
# Allow wiki articles to start with a period <Files .*> Order Deny,Allow Allow From All </Files>
<Files *.phtml> Deny From All </Files>
<Files LocalSettings.php> Deny From All </Files>
# Allow rewriting URLs RewriteEngine on RewriteBase /jabionpedia
# Redirect old /wiki.phtml?title= and index.php urls #RewriteRule wiki.phtml?title=(.*)$ $1 [L] RewriteCond %{REQUEST_URI} !index.php?title=(.*)&action=edit.*$ #RewriteCond %{QUERY_STRING} !title=(.*)&action=edit.*$ #RewriteRule index.php/(.*)$ $1 [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !(stylesheets|images)/ RewriteCond %{REQUEST_URI} !(redirect|index).php RewriteCond %{REQUEST_URI} !favicon.ico #RewriteCond %{QUERY_STRING} !action= #RewriteCond %{QUERY_STRING} !Userlogin
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^(.*)$ index.php/$1 [L]
--------
Southern Phoenix wrote:
I would like to use Media Wiki 1.3.1 for a project in Japanese, and my friend has just installed it successfully.
However, as I try to edit the Main Page and save it, it always return to the preceding version.
Does this problem have anything to do with the .htaccess file ?
Please remove the rewrite rules and make sure it works with raw URLs.
Check the history and recentchanges; clear your cache; force reloads. Check whether it's saving and just not showing the new version, or not saving. Set $wgDebugLogFile and see what turns up in the log.
-- brion vibber (brion @ pobox.com)
Brion wrote:
Please remove the rewrite rules and make sure it works with raw URLs.
Check the history and recentchanges; clear your cache; force reloads. Check whether it's saving and just not showing the new version, or not saving. Set $wgDebugLogFile and see what turns up in the log.
thank you very much.
after we removed the rewrite rules in .htaccess and added $wgScript = "$wgScriptPath/index.php"; in the LocalSettings.php, everything works just fine.
btw, how can we use the rewrite rules ? (I'm pretty satisfied with the present state anyway).
thanks,
Hendry
Southern Phoenix wrote:
after we removed the rewrite rules in .htaccess and added $wgScript = "$wgScriptPath/index.php"; in the LocalSettings.php, everything works just fine.
Great!
btw, how can we use the rewrite rules ? (I'm pretty satisfied with the present state anyway).
My sincere advice is to only use rewrite rules that *don't* overlap your real files -- it's just way too easy to get something that doesn't work.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
My sincere advice is to only use rewrite rules that *don't* overlap your real files -- it's just way too easy to get something that doesn't work.
thanks for your advice. we'll try that.
Hendry
mediawiki-l@lists.wikimedia.org