Friendly URLs

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Friendly URLs

Post by tomperys »

Hi,
can I ask if you are thinking about more options with Friendly URLs? Because so far if I Am not mistaken, you can only set the "mod_rewrite" in general settings and thats all. No options like in WordPress where you can choose from different types like /%monthnum%/%day%/%postname%/ or just /%postname%/ or write your own structure.

The main problem now is that, that myfaq is generating those URLs from postname in gross form:
  • full lenght of postname
  • name is with the diacritic so its replaced with special characters in the URL
  • before the postamne is for example "/content/54/258/cs/"
So the URL can be really long, if you have long postname and it can be pretty ugly like - content/55/426/cs/konec-vyd%C3%A1v%C3%A1n%C3%AD-ssl-certifk%C3%A1t%C5%AF-s-platnosti-3-roky.html

The length is not such big issue, worse is, that the URLs using the diacritics and they are repalced like you can see above, and its not very nice and friendly anymore :) It would be nice to have it without it and best would be to have some option to set own form and structure.
Thorsten
Posts: 15617
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Friendly URLs

Post by Thorsten »

Hi,

how should the URLs look like in your opinion?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Re: Friendly URLs

Post by tomperys »

  1. As a "quick help" solution - it will be good to at least convert the postname to non-diacritics characters, so for example:
    • there is post starting with "Konec vydávání"
    • so the URL is "konec-vydávání"
    • and the final URL is then ugly like "konec-vyd%C3%A1v%C3%A1n%C3%AD"
    it would help to convert it just to the non-diacritic, so like - "konec-vydavani"
  • The more permanent "longer term" solution - could be optipon, to set own sctructure like Wordpress have, so maybe define that we want just %postname% (of cource non-diacritic characters, so still for example that "konec-vydavani" instead of "konec-vydávání" ) and maybe option to replace that numbers and content "/content/54/258/cs/" to somethink like "/categoryname/postname/"
I know its possible to "go around" this and use for example the rewrite.map but it would be much nicer to have this above mentioned "like wordpress" option inside the admin backend and just set the /%categoryname%/%postname%/ and save it :)
Thorsten
Posts: 15617
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Friendly URLs

Post by Thorsten »

Hi,

yes, nice ideas. The major issue is that we have to handle existing installation with a lot fo 301 redirects from old URLs to new ones.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Re: Friendly URLs

Post by tomperys »

Ok, so taht means it will not be possible?
Thorsten
Posts: 15617
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Friendly URLs

Post by Thorsten »

Hi,

it is possible, but it's a lot of work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply