-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Friendlier Wiki URLs #687
Comments
Shall I assign @BuckarooBanzay to this? |
You can, i'm sure he already did a deep-dive into http-redirects/rewrites and decided to do that another day ™️ |
I think serving wiki by default if url did not match any known path for some other app would be good thing to do, then do 301 from index.php urls (first ofc make sure that redirect works correctly in all cases as these are locally cached). Yes, it can prevent accessing some wiki pages if page name exactly matches some other known application url but I still think that better ux for wiki pages in general is a lot more important and there's no really that many possible conflicts. |
Currently the wiki is on this url/route: https://pandorabox.io/index.php/Main_Page Placing it in the root directory isn't really a choice i think, it would create more conflicts with the The biggest pain would be to set up the redirects for the old urls afterwards (regex/rewrite stuff) |
That's probably the best option, almost everyone calls it the wiki anyway :) |
That's actually also how many other wiki sites do it out there (like wikipedia and mediawiki to name few).
Also it seems that both mentioned sites have paths like this for direct access. |
You could probably just do local redirect basically Anyway probably good to add local redirect also for /w/index.php to real index.php wherever it really is, I think wiki will use /w/ links for URLs that need more complicated queries and that's probably actual reason why they have /w/ and /wiki/ (to avoid conflicts and allow unrestricted query strings). edit. there seems to be official pretty good template for complete and exact (blocking some not-meant-for-everyone urls) requirements https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx |
Huhhila
friendlyurls - Rip off .php from urls
SX
Agreed, index.php really should not be there...
The text was updated successfully, but these errors were encountered: