Topic on Project:Support desk

星耀晨曦 (talkcontribs)

My wiki's short url is //domin/wiki/page.

When I visit Special:Notifications,that is //domin/wiki/Special:Notifications, the page prompts me "No such special page". After that, I visit it with another url(//domin/w/index.php?title=Special:Notifications), the page can be displayed properly.

Once, I thought it was web server url rewriting problem. However, most special pages are still accessible. So, I think the mediawiki have a bit of a problem.

Ciencia Al Poder (talkcontribs)

Usually, for the server, there should be no difference between both URLs, because the rewrite takes care to map first URL to second.

Try to find what exact URL is receiving PHP when accessing //domin/wiki/Special:Notifications. You can view it if you enable a debug log.

星耀晨曦 (talkcontribs)

I checked the web server log, I think //domin/wiki/Special:Notifications is rewritten to /w/index.php title=wiki/Special:++++++. This is not normal!

I think there is a problem with the rewrite rules of the web server. The pattern of rewriting rules is ^(wiki/[^/]+)/?$.

Ciencia Al Poder (talkcontribs)

Are you using apache, nginx or other server software? Can you post the complete rewrite rules you're using? The rewrites are inside an .htaccess?

星耀晨曦 (talkcontribs)
星耀晨曦 (talkcontribs)

I'm going crazy! I visited a page that was able to display properly, and the server log tell me 2017-08-17 10:11:52(time) 10.8.0.2(host) GET(cs-method) /w/index.php(cs-uri-stem) title=Special:++++++++++++(cs-uri-query) 443(s-port) //domin/wiki/Special:%E9%80%9A%E7%9F%A5 (cs(Referer)) 200(sc-status).

The return code is 200, but //domin/wiki/Special:%E9%80%9A%E7%9F%A5 is rewritten to /w/index.php title=Special:++++++++++++.

星耀晨曦 (talkcontribs)

I created a redirect, as long as ^wiki/Special:(.*)$ match will be redirected to w/index.php?title=Special:{R:1}. No doubt, cure the symptoms, not the cause.

Ciencia Al Poder (talkcontribs)

Apparently IIS7 doesn't like colons in URLs... see https://forums.iis.net/t/1220559.aspx

Wondering if it may be the cause and maybe you can add some of the suggested configuration to it...

星耀晨曦 (talkcontribs)

Make a reverse proxy? I think, I have to learn more knowledge.:D