If you would like to have different metadata actually for individual articles, news. You would have to stock up on updates (modifications) to your CMS in advance.
Re: Facebook Sharing Debugger cannot see the articles
The test page is indexing correctly
I remembered that in previous work I had to disable a single line in the htaccess file because it was showing an internal server error. Here is this file:
[code]# Disable directory listing
Options -Indexes
# Force utf-8 charset
AddDefaultCharset UTF-8
AddCharset UTF-8 .html .css .js .svg .woff .woff2
# Security
ServerSignature Off
# Protect .htaccess file
<Files .htaccess>
Require all denied
</Files>
# Protect config.php
<Files config.php>
Require all denied
</Files>
# Protect fusion_error_log.log
<Files fusion_error_log.log>
Require all denied
</Files>
# Protect .cache files
<Files *.cache>
Order allow,deny
deny from all
</Files>
<ifModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
</ifModule>
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
# Options +SymLinksIfOwnerMatch <------- I turned this line off
<ifModule mod_rewrite.c>
# Let PHP know mod_rewrite is enabled
<ifModule mod_env.c>
SetEnv MOD_REWRITE On
</ifModule>
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal dummy connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /administration and /themes directories and images from rewrite rules
RewriteRule ^(administration|themes)/*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^/(administration|config|index.php)
RewriteRule ^(.*?)$ index.php [L]
</ifModule>[/code]
Could this be a problem?
Re: Facebook Sharing Debugger cannot see the articles
Alright, I have set up a new test server on the latest GitHub version. I took a sample page and compared to yours.
My finding is that your site has a weird OG going on, which I do not know whether is customized by your end? Because the one supplied by our stock version has a different output and is working fine. The problem is that your og Type is indicating a website, while the actual stock one will say it is an article, and your url is root url while the one supplied by stock will have the non-SEF url formatted url values.
Please see attachment of both HTML source comparison for this.
[img]https://www.php-fusion.co.uk/infusions/forum/attachments/og_capture.png[/img]
Please view source, (or use Facebook Debugger) on this - https://next.php-fusion.co.uk/news/1/test-news-subject
Re: Internal links are not SEF, if there are parameters in link
If you or any dev member will fix this issue, there is another conflict in rewrites system between news category 'downloads' and downloads main site itself, which can be fixed too. If both have rewrites enabled and you want to view news category 'downloads', you get redirected to downloads main site.
I've fixed this for now by changing rewrites for downloads from [code]"downloads" => "infusions/downloads/downloads.php"[/code]to[code]"downloads/main" => "infusions/downloads/downloads.php"[/code]
Re: Facebook Sharing Debugger cannot see the articles
Hello
Articles on my website are not displaying correctly when sharing to Facebook. Facebook Sharing Debugger indicates that it gets redirected to the home page every time.
[quote]Input URL https://compforum.pl/infusions/news/news.php?readmore=1064
301 HTTP Redirect https://compforum.pl/news/1064/artykul-testowy
og:url Meta Tag https://compforum.pl/[/quote]
What did I do wrong?
Re: Internal links are not SEF, if there are parameters in link
Thank you for your reply.
First i've deactivated all rewrites. Then i reactivated and reinstalled rewrite for user profiles only. After refreshing site using CTRL + F5 / CTRL + R all profile links was unchanged. When i visit a user profile, the current site is rewritten to SEF.
So i've deactivated rewrites for users profiles again and activated news instead. Same effect: after refreshing the site all news links with params was unchanged.
At last step i've deactivated rewrites for news and tried downloads instead. Rewrites for downloads activated, site refreshed, download links with params wasn't changed.
Maybe there's a bug in sef system?
Re: Internal links are not SEF, if there are parameters in link
Hi, the current SEF driver compiles all rules. So if a single rule breaks, the rest will glitch as well. That is unfortunately the main drawback of the current SEF system. To work around this, remove and uninstall all permalink rules and reinstall the "user profile" and see if profile.php?lookup=1 translates first or not? After that, install "download", and verify the links do translate on page load. If they don't, that driver is bad and cannot be used.
Re: Internal links are not SEF, if there are parameters in link
PHPFusion Version: 9.10.20
PHP: 8.1.5 (tested other versions starting from 7.4 and higher)
Apache: 2.4.53, mod_rewrite is enabled
Links are not rewritten to SEF in source code. They are untouched if the links contain any params like [b][u]profile.php?lookup=1[/u][/b] or [b][u]infusions/downloads/downloads.php?download_id=1[/u][/b]. After click on such a link, the requested site is correctly redirected to "profile-1/username" or "/downloads/download-1/downloadtitle"
Using internal links with params reduces seo score results and shows warnings in analyzer tools about not using parameters in internal links (if these links are not explicitely defined as "no-follow").
How to fix it?
I do not recognize the issues. Nothing I have encountered. However SEO is a lot to take in with many layers of options to void issues. Nothing we can go thru in a few simple steps here. We do have an ongoing effort to improve the SEO for Fusion in baseline.
Hi,
I use search-consolo from google to indexing my new content from site to google. I see that page are very hard indexd or never.
In last week i have something like 24 links indexed and 94 excluded and i don't understand why!?
I use seo frendly url and i see that a lot of link from excluded use simple url with readme...
Situation is something like this:
[i]ErrorRedirect errorStarted 2
ExcludedPage with redirect N/A 30
ExcludedDiscovered - currently not indexed N/A 27
Excluded Crawled - currently not indexed N/A 24
Excluded Duplicate, Google chose different canonical than user N/A 7
Excluded Not found (404) N/A 4
Excluded Blocked by robots.txt N/A 2[/i]
What i must to do for improve number of links that are indexed...
I try to use url inspection to tell google about new content but without succes.
Re: Seo analyzer for V 9.10.20 - some very important change
Thanks for reply.
I will search why i have duplicate Meta, about 5 i solve problem.
About a Theme mobile frendly i don't have enoght knowledge to design myself.
Maybe RobiNN will make this on next version on Magazine theme to solve Issue - [b]clickable elements too close together and text too small to read on mobile[/b]
Thanks for help
Re: Seo analyzer for V 9.10.20 - some very important change
About 4(dublicate Meta) this is something that you do somewhere, i don't have it on my site.
About 5, If your site is NONwww like 'site.com' then site 'www.site.com' need to redirect to 'site.com' this can be done by webserver or hosting
About 3,6 and 7, Design your own site theme and make it 'mobile friendly' and include all what you want!
Re: Seo analyzer for V 9.10.20 - some very important change
I user some free seo analyzer site for see what i must to improve for my site to be more good on google search and i have some things that are basics to be maked for a good position in google:
1.) Home page is index.php is important to be just site domain. Site title start with Home - and after that is site title... how can remove Home - ? without change at every update!? Domain name and /index.php have some title meta and isn't ok, can redirect index.php to domain name on all site?
2.) Sitemap - i user a sitemap from RobiNN but in last time don't work and i get an errror... is posible to be error because my locale is Romanian?
3.) H1 on title - No H1 tag was found. For the best SEO results there should be exactly one H1 tag on each page.
4.) On my site are 12 pages - Duplicate meta descriptions who to fix this?
5.) Something about redirect but i don't understand very good this. WWW Canonicalization? Does your site appear on more than one URL?
The www and non-www versions of your URL are not redirected to the same site. This website uses URLs with www and non-www subdomain. This may cause duplicate content and bad links to your website.
6.) Schema Meta Data ?Does your content include relevant Schema.org metadata? No Schema.org data found on your page.
7.) Last but very important is from Google console that said: Page is not mobile friendly - This page can be difficult to use on a mobile device. Issue - clickable elements too close together and text too small to read on mobile.
Can help me someone to solve this? Maybe is important to be consider this point important for next update at version 9.10 for all users?
I use 5 analyzer and this 7 are common problems on all.
Re: How to get $file_path when "SEF" and "Normalize Friendly URLs" are enabled
[quote]I've got "" on $file_path.[/quote]
Here is another solution
[code]if (fusion_get_settings('site_seo')) {
$params = http_build_query(\PHPFusion\Rewrite\Router::getRouterInstance()->getFileParams());
$path = \PHPFusion\Rewrite\Router::getRouterInstance()->getFilePath();
$file_path = '/'.(!empty($path) ? $path : PERMALINK_CURRENT_PATH).($params ? "?" : '').$params;
} else {
$file_path = '/'.PERMALINK_CURRENT_PATH;
}
if (fusion_get_settings('opening_page') == 'index.php' && $file_path == '/' || $file_path == '/'.fusion_get_settings('opening_page')) {
// content visible only on homepage
}[/code]
I'll add function for this to core, there are many situations when you need to display something only on homepage.
[quote]And no page title in $settings.[/quote]
`render_page()` function displays current page layout and not custom pages. Specify what you want..
'sitename' is page title or if you want entire current title, there is function [url]https://php-fusion.co.uk/docs/phpfusion-development/output-handler/get_title[/url]
Btw. here is template for Custom pages, you can copy this code into your theme and modify it [url]https://github.com/PHPFusion/PHPFusion/blob/Andromeda/themes/templates/global/custompage.tpl.php[/url]
Since this can be a really annoying problem, I sent a quick fix. Everyone should see update v9.10.11. This fix is available only through auto update system.
You can view all discussion threads in this forum. You cannot start a new discussion thread in this forum. You cannot start on a poll in this forum. You cannot upload attachments in this forum. You can download attachments in this forum.