lopezloo Posted November 22, 2014 Share Posted November 22, 2014 Currently wiki page url looks like that: https://wiki.multitheftauto.com/wiki/Main_Page What is purpose of using "wiki" subdomain if we need also add catalog "/wiki/"? I suggest made URLs like that: https://wiki.multitheftauto.com/Main_page and https://mtasa.com/wiki/Main_page and of course for back compatibility don't disallow old schema. Link to comment
Woovie Posted November 22, 2014 Share Posted November 22, 2014 http://mtapolska.pl/wiki/Strona_g%C5%82%C3%B3wna Link to comment
lopezloo Posted November 22, 2014 Author Share Posted November 22, 2014 I'm talking about official MTA wiki. Link to comment
Woovie Posted November 22, 2014 Share Posted November 22, 2014 Yeah of course, it's just ironic to complain about and not follow your own words. Link to comment
lopezloo Posted November 22, 2014 Author Share Posted November 22, 2014 I'm not using double 'wiki' in urls. And I fixed subdomain now. Link to comment
Mr_Moose Posted December 2, 2014 Share Posted December 2, 2014 Pretty urls are defined in the .htaccess file which probably has a line like this so far: RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] However, it's easy to change to whatever you want, this for example: RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] RewriteRule ^/?w(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] Will allow "w" and convert it to "wiki", but if I change it to this: RewriteRule ^/?docs(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] It will just ignore one of them. Now, your idea was to use the root right? Well that's a bad idea, it causes conflicts with real existing folders. You can read more about that here: http://www.mediawiki.org/wiki/Manual:Short_URL "wiki" is very common even on pages with subdomains so if anything really needs to be changed at all that "w" and "wiki" thing might work, except for that it's a worthless idea. Link to comment
Woovie Posted December 3, 2014 Share Posted December 3, 2014 It would be easier if we just had the subdomain set up to point to /wiki/ folder honestly. Rewrite rules are overkill for this. Link to comment
Johnny Killstone Posted December 5, 2014 Share Posted December 5, 2014 It would be easier if we just had the subdomain set up to point to /wiki/ folder honestly. Rewrite rules are overkill for this. Default media wiki url's looks like this at the end: 'index.php?action=', so you are most likely already using Rewrite rules in some way, it's not overkill at all, in fact, most media wiki's use this. Why most people chose to name their virtual folder to 'wiki' is a mystery tho. Link to comment
lopezloo Posted December 5, 2014 Author Share Posted December 5, 2014 Now, your idea was to use the root right? Well that's a bad idea, it causes conflicts with real existing folders. No. Keep wiki on /wiki/ folder and just redirect https://wiki.multitheftauto.com/Whateva to https://mtasa.com/wiki/Whateva I'm using this on my site: RewriteRule ^w/(.*)$ /wiki/$1 [L,NC] #redirect /w/ to /wiki/ RewriteCond %{REQUEST_FILENAME} !/wiki/ RewriteCond %{HTTP_HOST} wiki.multitheftauto.com RewriteCond %{REQUEST_URI} !wiki/ RewriteRule (.*) /wiki/$1 [L] RewriteCond %{REQUEST_FILENAME} !/wiki/ RewriteCond %{HTTP_HOST} wiki.multitheftauto.com RewriteCond %{REQUEST_URI} !wiki/ RewriteRule (.*) /wiki/$1 [L] Maybe it can be done better, but this one works. Also this need to be converted to nginx system I think . Link to comment
MTA Team Blokker_1999 Posted January 26, 2015 MTA Team Share Posted January 26, 2015 first off: assumption is the mother of all f*ckups. We don't use apache and therefore we don't have a .htaccess second: the /wiki/ subdir is something that mediawiki does by default. Blame them, not us. And why does it even bother you? Typing in wiki.multitheftauto.com in your browser takes you to our wiki. After that it's all just bookmarks and/or copy/paste. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now