Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC: Redirection of wt-1 URLs to wt-2 Syntax

Redirection of wt-1 URLs to wt-2 Syntax 1 month 17 hours ago #1

  • ubuecher
  • ubuecher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 16
With "pretty_URLs" settings it is possible to redirect old Version 1 URLs to the new Version 2 style.

Is this only possible for "../individual.php?pid=..." and "../family.php?famid=..." ?

It would be nice, if this works also for the main diagrams like pedigree and hourglass.

Regards,
Uwe
webtrees 1.7.16 : https:/ahnalt.jubila.de/
webtrees 2.0.4 : https:/geneal.jubila.de/

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 4 weeks 18 hours ago #2

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
There are redirects for all the URLs that can be indexed by search engines.

The charts and reports cannot be indexed.

> It would be nice, if this works also for the main diagrams like pedigree and hourglass.

Why do you think this is needed?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 4 weeks 18 hours ago #3

  • ubuecher
  • ubuecher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 16
> Why do you think this is needed?

As I said: "It would be nice". It is not really needed.

Reason is because of old links stored at some unkown locations.

Uwe
webtrees 1.7.16 : https:/ahnalt.jubila.de/
webtrees 2.0.4 : https:/geneal.jubila.de/

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 4 weeks 5 hours ago #4

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
Matching URLs is a slow process.

On my fast development machine, it takes 40ms to create a simple page - and 1.5ms of those are matching the URL.

(For comparison, I can make 10 database calls in 1.5ms.)

On a slower server, this time could easily be 5ms.

We have about 300 URLs. To add 30 more could add 0.5ms to the time take to process the URL..

It might be nice/useful - but is it worth 0.5ms on every request?

I guess we'd need to make this optional.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 4 weeks 2 hours ago #5

  • ubuecher
  • ubuecher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 16
Many thanks for your explanations!

Sounds like better not to implement this feature.

Greetings from Germany
Uwe
webtrees 1.7.16 : https:/ahnalt.jubila.de/
webtrees 2.0.4 : https:/geneal.jubila.de/

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 2 weeks 6 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
I have updated the code to support all the other URLs from webtrees1/phpGedview: charts, lists, reports, etc.

It is now a module, so it can be disabled by users who do not need it.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 1 week 3 days ago #7

  • ubuecher
  • ubuecher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 16
I have tested this feature today after upgrading to 2.0.4.
It is not working as I expected. The rootid from the original URL is not transfered to the resulting URL.

I entered the following URL: geneal.jubila.de/hourglass.php?rootid=I24691&ged=buecher.ged

Result was this URL: geneal.jubila.de/tree/buecher.ged/hourglass-3-/I13

The resulting ID is the default starting person.

Greetings and many thanks, Uwe
webtrees 1.7.16 : https:/ahnalt.jubila.de/
webtrees 2.0.4 : https:/geneal.jubila.de/

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 1 week 3 days ago #8

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
That's a typo - the code is looking for a parameter "root_id" instead of "rootid".

Thanks for reporting. Fixed.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Redirection of wt-1 URLs to wt-2 Syntax 1 week 2 days ago #9

  • ubuecher
  • ubuecher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 16
Is it possible for me to correct this typo also in my 2.0.4 Installation?
webtrees 1.7.16 : https:/ahnalt.jubila.de/
webtrees 2.0.4 : https:/geneal.jubila.de/

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 1 week 2 days ago #10

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Redirection of wt-1 URLs to wt-2 Syntax 1 week 2 days ago #11

  • ubuecher
  • ubuecher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 16
After modifying my installation as described, it works!!

Thanks a lot, Uwe
webtrees 1.7.16 : https:/ahnalt.jubila.de/
webtrees 2.0.4 : https:/geneal.jubila.de/

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum