The Virtual Verduria Feedback Thread

Almea and the Incatena
Post Reply
Frislander
Posts: 431
Joined: Fri Jul 13, 2018 8:40 am

The Virtual Verduria Feedback Thread

Post by Frislander »

I'm just gonna start this thread as a place to post minor feedback on the Virtual Verduria website and the Almeopedia. This is mainly intended to be focused on technical issues and other related matter rather than the content of the websites themselves (i.e. this isn't intended to be n Almea discussion thread).

First thing I'd noticed is that the image for the dialect map in the Xurnese grammar is broken.
Ares Land
Posts: 3018
Joined: Sun Jul 08, 2018 12:35 pm

Re: The Virtual Verduria Feedback Thread

Post by Ares Land »

Good idea!
The images on this page: http://www.zompist.com/almea.htm are broken too, and so are the links on this page: http://www.zompist.com/beliefs.htm

Also http://www.almeopedia.com still redirects to http://www.almeopedia.com/Main_Page instead of http://www.almeopedia.com/almeo.html.
zompist
Site Admin
Posts: 2944
Joined: Sun Jul 08, 2018 5:46 am
Location: Right here, probably
Contact:

Re: The Virtual Verduria Feedback Thread

Post by zompist »

OK, these should be done except for the rewrite rule.

Does anyone speak .htaccess? This is what I have now:

Options +FollowSymLinks
RewriteEngine on
# Special handling for search strings
# RewriteRule ^Special:Search(.*)$ almeopedia/mediawiki/index.php$1 [L]

# Everything else
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(almeopedia/skins|stylesheets|images|config)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteRule ^(.*)$ almeopedia/mediawiki/index.php?title=$1 [L,QSA]


Obviously anything with "mediawiki" is wrong, but I'm not sure what the correct lines should be.
Ares Land
Posts: 3018
Joined: Sun Jul 08, 2018 12:35 pm

Re: The Virtual Verduria Feedback Thread

Post by Ares Land »

zompist wrote: Thu Aug 02, 2018 9:45 am OK, these should be done except for the rewrite rule.

Does anyone speak .htaccess? This is what I have now:

Options +FollowSymLinks
RewriteEngine on
# Special handling for search strings
# RewriteRule ^Special:Search(.*)$ almeopedia/mediawiki/index.php$1 [L]

# Everything else
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(almeopedia/skins|stylesheets|images|config)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteRule ^(.*)$ almeopedia/mediawiki/index.php?title=$1 [L,QSA]


Obviously anything with "mediawiki" is wrong, but I'm not sure what the correct lines should be.
Sure; try this:
Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ almeo.html?title=$1 [L,QSA]


This will rewrite any call to almeopedia.com/PageName to almeopedia.com/almeo.html?PageName.
For instance, with these rules www.almeopedia.com/Xurno will actually call www.almeopedia.com/almeo.html?Xurno

Maybe you want to do a redirect instead of a rewrite. In this case, replace the last line with:
RewriteRule ^(.*)$ almeo.html?title=$1 [R=301,L,QSA]

I don't think you need these rules anymore:

RewriteCond %{REQUEST_URI} !^/(almeopedia/skins|stylesheets|images|config)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php


I believe those handle Mediawiki stylesheets and special config pages.

(EDIT: I've got no idea what those new syntax tools actually do but they sure look fun!)
So Haleza Grise
Posts: 128
Joined: Mon Jul 09, 2018 6:08 am

Re: The Virtual Verduria Feedback Thread

Post by So Haleza Grise »

For some reason, the succession box for Verdurian kings doesn't link to the correct articles in some cases - Caloton from the
Boďomor Kušďey article for example, or Estdorot from the Ževuran article.
zompist
Site Admin
Posts: 2944
Joined: Sun Jul 08, 2018 5:46 am
Location: Right here, probably
Contact:

Re: The Virtual Verduria Feedback Thread

Post by zompist »

Thanks, Are Lande! Sadly, though, it doesn't work. Any request just goes to the main page. Any idea what might be going wrong?
Ares Land
Posts: 3018
Joined: Sun Jul 08, 2018 12:35 pm

Re: The Virtual Verduria Feedback Thread

Post by Ares Land »

zompist wrote: Sat Aug 04, 2018 4:06 pm Thanks, Are Lande! Sadly, though, it doesn't work. Any request just goes to the main page. Any idea what might be going wrong?
Ah, yes. I think you need a redirect instead, and besides the query string was wrong.
So the correct rule should be: (crossing fingers that I don't mess up this time)

RewriteRule ^(.*)$ almeo.html?$1 [R=301,L,QSA]

If I understood correctly how the Almeopedia works, everything is done client-side, so the browser needs to see the actual query string.

R=301 tells the browser to redirect to almeo.html?PageName. Without that flag, Apache acts as a reverse proxy: you call almeopedia.com/PageName and Apache returns the HTML response for almeopedia.com/almeo.html?PageName. Unfortunately, the client-side code will see almeopedia.com/PageName, and it won't know what to do with that.
Ares Land
Posts: 3018
Joined: Sun Jul 08, 2018 12:35 pm

Re: The Virtual Verduria Feedback Thread

Post by Ares Land »

Looks like it loops now. Crap. I think we need an extra condition:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^.*.html
RewriteRule ^(.*)$ almeo.html?$1 [R=301,L,QSA]


(Sorry about the back-and-forth. Apache is powerful, and also awfully counter-intuitive).
zompist
Site Admin
Posts: 2944
Joined: Sun Jul 08, 2018 5:46 am
Location: Right here, probably
Contact:

Re: The Virtual Verduria Feedback Thread

Post by zompist »

That fixed the loop, but tried to go to the wrong page.

But I fixed the original problem anyway, by making an index.html that redirects to almeo.html.

I do appreciate the help— I never learned how to do .htaccess.
Ares Land
Posts: 3018
Joined: Sun Jul 08, 2018 12:35 pm

Re: The Virtual Verduria Feedback Thread

Post by Ares Land »

zompist wrote: Sun Aug 05, 2018 2:56 pm That fixed the loop, but tried to go to the wrong page.

But I fixed the original problem anyway, by making an index.html that redirects to almeo.html.

I do appreciate the help— I never learned how to do .htaccess.
No problem, I'm happy to help — and I'm glad you could find a solution.
User avatar
Pedant
Posts: 526
Joined: Thu Aug 02, 2018 8:52 am

Re: The Virtual Verduria Feedback Thread

Post by Pedant »

Is there something wrong in the code for Munkhâshi and Bé clothing? The images don’t seem to be working...
My name means either "person who trumpets minor points of learning" or "maker of words." That fact that it means the latter in Sindarin is a demonstration of the former. Beware.
Spell Merchant | Patreon
User avatar
bbbosborne
Posts: 191
Joined: Mon Jul 23, 2018 6:02 pm

Re: The Virtual Verduria Feedback Thread

Post by bbbosborne »

in the let's get going! section of the LCK homepage, the shortcut links for style and language families are broken.
when the hell did that happen
Post Reply