Web based family history software

file Question base_url

  • christens_j
  • christens_j's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #103106 by christens_j
base_url was created by christens_j
I am currently using webtrees with two domains, one is an alias.
in config.ini I put base_url=""
it works fine.

but sometimes the routing is wrong.
how can  i solve this ?
 

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

More
2 years 7 months ago #103108 by fisharebest
Replied by fisharebest on topic base_url
> I am currently using webtrees with two domains, one is an alias.

Instead of an alias, you should configure your webserver to redirect one domain onto the other domain

> in config.ini I put base_url="" it works fine.

If you leave this blank, webtrees will try to detect the domain using information provided by the webserver.

This is very unreliable. For example, HTTPS is handled by the webserver, so webtrees cannot know whether the request is HTTP or HTTPS. Therefore it cannot generate the correct URLs.

> how can i solve this ?

I do not believe it is possible. This is why webtrees uses a configured value for base_url!

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

  • christens_j
  • christens_j's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #103109 by christens_j
Replied by christens_j on topic base_url
i think i can use htaccess to reroute to the other domain alias.

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

  • christens_j
  • christens_j's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #103248 by christens_j
Replied by christens_j on topic base_url
I read you were making it also without base_url when making the next revision of webtrees...?

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

More
4 days 14 hours ago - 4 days 14 hours ago #116997 by Anke
Replied by Anke on topic base_url
Hi,

initially I installed webtrees (current version) on http://my-domain. Now I installed SSL, and JS and CCS can't be found as the base_url is http://my-domain. Where can I change it to https://my-domain? I can't find any config.ini file. A config.ini.php in the data folder seems to be ignored.

Anke
Last edit: 4 days 14 hours ago by Anke.

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

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
4 days 14 hours ago - 4 days 13 hours ago #116998 by bertkoor
Replied by bertkoor on topic base_url

initially I installed webtrees (current version) on http://my-domain. Now I installed SSL, and JS and CCS can't be found as the base_url is http://my-domain. Where can I change it to https://my-domain? I can't find any config.ini file. A config.ini.php in the data folder seems to be ignored.
base_url is a property in ./data/config.ini.php
If it had a "http:" value, it should suffice to change that to "https:"
Check and double-check: this cannot be ignored.
Just paste the full url copied from your browser address bar, trim off anything after (including) the first single slash.

stamboom.BertKoor.nl runs on webtrees v2.2.6
Last edit: 4 days 13 hours ago by bertkoor.

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

More
4 days 13 hours ago #116999 by Anke
Replied by Anke on topic base_url
Thank you for your always quick replies!

It's working now. I'm afraid I can't rely on Filezilla any longer. Cyberduck shows me, that Filezilla not only didn't show me an existing config file, it also didn't overwrite the old file.

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

Powered by Kunena Forum