Deeplinks in Unicode?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Deeplinks in Unicode?

Post by Huhu »

When deeplinking to a single article, the format is usually "index.php?/something/something.xyz".
Now, when I try to create a subdomain that leads to an article, the link in the subdomain becomes convertet to Unicode, converting the slashes to "%252F", which of course breaks the link.
Support just said I should switch to Unicode in the installation and they couldn'Ät really do anything about it.
Example:
http://jaktfalkarna.se/index.php?/archi ... r-dig.html
is converted in the subdomain forwarding to
http://jaktfalkarna.se/index.php?%252Fa ... r-dig.html
... which is rubbish.

Any other solution?
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Deeplinks in Unicode?

Post by garvinhicking »

Hi!

Hm, I don't really understand where exactly the redirect is happening?

You could witch the blog to use URL rewriting (Apache Errorhandling or mod_rewrite) so that a URL does not contain the index.php?/ part, maybe then redirection works how you want it?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: Deeplinks in Unicode?

Post by Huhu »

Sure, yet when enabling Apatche mod_rewrite, all former permalinks are broken, which is not an option ...
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Deeplinks in Unicode?

Post by garvinhicking »

Huhu wrote:Sure, yet when enabling Apatche mod_rewrite, all former permalinks are broken, which is not an option ...
Sure, s9y keeps the old permalinks that will still work! index.php?/.... will always work in environments where URL rewriting is enabled, it's our fallback mechanism.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: Deeplinks in Unicode?

Post by Huhu »

Strange, the internal permalinks through the standard template broke ... must have been my fault then. Anyway, I created a workaround through htaccess redirect from a virtual page for now. Will test later.
Oh just on a side note, saving server settings within the admin panel breaks the database connection for some reason, re-uploading a copy of conifg_local fixes it.

All well, thanks again!
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Deeplinks in Unicode?

Post by garvinhicking »

Hi!

At some point in past s9y versions we stored the database user/password also in the serendipity_config database table. An updater task should then have removed those, they could be the culprit of saving the old/wrong password to the serendipity_config_local.inc.php file.

Another error could be the "remember password" function of your browser, which could fill in your use rlogin field inside the password field that's meant for the database...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply