Web based family history software

file Question Pretty URLs 404 - not working (webtrees-2.1.18)

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago - 1 year 3 months ago #1 by webtreesFUN
Hello all..

Pretty URLs not working for me, 404 have, in facts urls are translated by .htaccess but webpages not working.
I can give access to FTP acc (via priv msg) to check whats going on around, coz it's 5th hosting server thats not working.
Appache, webtrees-2.1.18 and PHP 7, 8 etc.
If some one want check this, then great. I'm not IT amateur, but can't resolve this issue.
Last edit: 1 year 3 months ago by webtreesFUN.

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

More
1 year 3 months ago #2 by makitso
Have you reviewed the info here?
webtrees.net/faq/urls/

Rob
www.skatekey.net ( webtrees 2.2.x beta GitHub)
webtrees forum admin
Author custom css module
PHP 8.2.24
Hosted at tigertech.net

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

More
1 year 3 months ago #3 by fisharebest
Replied by fisharebest on topic Pretty URLs 404 - not working (webtrees-2.1.18)
What is the URL of your site?

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

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago - 1 year 3 months ago #4 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)
As I remember tried report to you (@ fisharebest) this issue via e-mail (25.12.2023 21:36) - data is still actual around with whole issues.

BTW: webtrees-2.1.18
Total files: 7236
LOC summary: 812211
Average LOC per file: 112
Last edit: 1 year 3 months ago by webtreesFUN.

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
1 year 3 months ago #5 by bertkoor
This public forum doesn't do email.
Two questions were asked in order to assist you, no response yet...

stamboom.BertKoor.nl runs on webtrees v2.2.1

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #6 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)

Have you reviewed the info here?
webtrees.net/faq/urls/
 
Sure..

 

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #7 by webtreesFUN

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #8 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)

This public forum doesn't do email.
Two questions were asked in order to assist you, no response yet...
 
Coz when rewrite_urls="0" then forward to other subdomain with error as hosting have. When rewrite_urls="1" then working normaly with pretty url..
Then I expected to show whole configuration. Esspecially when I have 3 servers and on all this same problem.

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

More
1 year 3 months ago - 1 year 3 months ago #9 by Franz Frese
Replied by Franz Frese on topic Pretty URLs 404 - not working (webtrees-2.1.18)
Your site infinityfreeapp.com  is not configured to show pretty urls.
beside editing .htaccess you also have to edit  
Code:
data/config.ini.php .
Last edit: 1 year 3 months ago by Franz Frese.

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

More
1 year 3 months ago #10 by fisharebest
Replied by fisharebest on topic Pretty URLs 404 - not working (webtrees-2.1.18)
You said that pretty URLs do not work.

Pretty URLs are not enabled on this site.

What happens exactly? Or can you enable pretty URLs so that I can look?

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

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #11 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)
As I wrote.. if is configured the redirections are and nothing to see..
I can give access to FTP if can help. I lost any ideas what is wrong.

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

More
1 year 3 months ago #12 by fisharebest
Replied by fisharebest on topic Pretty URLs 404 - not working (webtrees-2.1.18)
> As I wrote.. if is configured the redirections are and nothing to see..

There are two things

1) tell webtrees to generate pretty URLs
2) tell apache to redirect pretty URLs to index.php

You said that you read the FAQ. This tells you to add a line "rewrite_urls" to your config.ini.php

I guess you did not do this.

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

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

More
1 year 3 months ago #13 by Franz Frese
Replied by Franz Frese on topic Pretty URLs 404 - not working (webtrees-2.1.18)
beside editing .htaccess you also have to edit  

data/config.ini.php .

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #14 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)

> As I wrote.. if is configured the redirections are and nothing to see..
 

I guess you did not do this.
 
I do. Just dont know why apache not showing pages. If You can write PW then I can sent access to ftp etc.
I made test for 3 diffrent hostings and this same..

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #15 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)

beside editing .htaccess you also have to edit  

data/config.ini.php .
 
I know.. rewrite_urls="1" and then have pretty url but 404

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

More
1 year 3 months ago #16 by fisharebest
Replied by fisharebest on topic Pretty URLs 404 - not working (webtrees-2.1.18)
> I do.

Post the config.ini.php. (except the database account).

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

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago - 1 year 3 months ago #17 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)
Code:
; <?php return; ?> DO NOT DELETE THIS LINE dbtype="mysql" dbhost=" " dbport="3306" dbuser=" " dbpass=" " dbname=" " tblpfx="wt_" base_url="http://www.webtrees.infinityfreeapp.com/system" rewrite_urls="0"

Code:
<IfModule mod_rewrite.c>     RewriteEngine On     RewriteBase /webtrees     # GIT config files can contain credentials or other sensitive data.     RewriteRule \.git - [F]     # User data is stored here by default.     RewriteRule ^data(/|$) - [F]     # Nothing sensitive here, but there is no need to publish it.     RewriteRule ^app(/|$) - [F]     RewriteRule ^modules - [F]     RewriteRule ^resources(/|$) - [F]     RewriteRule ^vendor(/|$) - [F]     # Redirect from HTTPS including "www." to HTTP     RewriteCond %{HTTPS} on     RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]     RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]     # Serve index.php if the request is not an existing file or directory     RewriteCond %{REQUEST_FILENAME} !-d     RewriteCond %{REQUEST_FILENAME} !-f     RewriteRule ^ index.php [L] </IfModule>

I have this but also not affecting without
Code:
    # Redirect from HTTPS including "www." to HTTP     RewriteCond %{HTTPS} on     RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]     RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
Last edit: 1 year 3 months ago by webtreesFUN.

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

More
1 year 3 months ago #18 by fisharebest
Replied by fisharebest on topic Pretty URLs 404 - not working (webtrees-2.1.18)
You have the line: rewrite_urls="0"

This means DO NOT use pretty URLs.

Change it to: rewrite_urls="1"

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

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

  • webtreesFUN
  • webtreesFUN's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #19 by webtreesFUN
Replied by webtreesFUN on topic Pretty URLs 404 - not working (webtrees-2.1.18)
Dam... I know!! But then 404..
www.webtrees.infinityfreeapp.com/system/

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

More
1 year 3 months ago #20 by fisharebest
Replied by fisharebest on topic Pretty URLs 404 - not working (webtrees-2.1.18)
In your .htaccess file, you have the line

RewriteBase /webtrees

But you have installed webtrees in a folder /system.

You should change this line to /system

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

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

Powered by Kunena Forum