Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Facebook Sharing Debugger cannot see the articles

Asked Modified Viewed 1,616 times
A
AdrianCelej
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

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/


What did I do wrong?
Edited by AdrianCelej on 17-06-2022 21:55,
AdrianCelej attached the following image:
Image not found
0 replies

4 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Do you get same results with https://compforum.pl/news/1064/artykul-testowy as input URL?
0 replies
A
AdrianCelej
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Yes
0 replies
— 2 months later —
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

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.

www.php-fusion.co.uk/infusions/forum/attachments/og_capture.png


Please view source, (or use Facebook Debugger) on this - https://next.php-fusion.co.uk/news/1/test-news-subject
Edited by Chan on 29-08-2022 04:05,
Chan attached the following image:
Image not found
0 replies
A
AdrianCelej
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

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:
# 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>

Could this be a problem?
Edited by AdrianCelej on 30-08-2022 00:44,
0 replies

Category Forum

SEO & SEF - 9

Labels

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
A
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet