Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Link problem when switching from 1.x to 2.x 2 weeks 5 days ago #1

  • geme
  • geme's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 33
When changing from 1.7x to 2.1x, there is the problem that many public links are used in external websites, e-mails, etc.
Is there a way to convert or redirect the link from 1.7x to 2.1x when running?

Version 1.7x: https://domain/individual.php?pid=Individualid&ged=familytree

Version 2.1x: https://domain/webtrees/index.php?route/webtrees/tree/ familytree /individual/ Individualid

Why is "webtrees" used twice in 2.1x ?

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

Link problem when switching from 1.x to 2.x 2 weeks 5 days ago #2

  • ric2015
  • ric2015's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 315

Is there a way to convert or redirect the link from 1.7x to 2.1x when running?

If the module 'Legacy URLs' is active, this is done by webtrees itself. You could also configure redirects in your web server configuration.

In general, you may want to enable 'pretty urls', see here - This will also remove the duplicated 'webtrees' within your urls.
Richard

webtrees 2.1.0 at cissee.de/webtrees2
Vesta custom modules (Classic Look & Feel, Gov4webtrees, Shared Places, Extended Relationships) available for webtrees 2.1 at cissee.de

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

Link problem when switching from 1.x to 2.x 1 week 6 days ago #3

  • geme
  • geme's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 33
The switch to “pretty URLs” worked. There are only problems when calling the 1.7x URL - does anyone have any ideas.

url 2.1x https://mydomain/webtrees/tree/xxxxxx/individual/I3646/individual-name

url 1.7x https://mydomain/individual.php?pid=I3646&ged=xxxxxx

Server Error
404
Page Not Found


Server log
[Thu May 05 09:42:08.222417 2022] [fcgid:warn] [pid 1462] (32)Broken pipe: [client myadress] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://mydomain/webtrees/index.php?route=%2Fwebtrees%2Ftree%2Fxxxxxx

webtrees
.httpacces

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /webtrees/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

data
config.ini.php

base_url="mydomain/webtrees"
rewrite_urls="1"

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

  • Page:
  • 1
Powered by Kunena Forum