php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67602 Font-Loading depends on subdomain "www"
Submitted: 2014-07-10 09:05 UTC Modified: 2017-07-24 21:25 UTC
Votes:4
Avg. Score:3.5 ± 1.1
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:2 (50.0%)
From: cicer0 at arcor dot de Assigned: tyrael (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: OSX
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cicer0 at arcor dot de
New email:
PHP Version: OS:

 

 [2014-07-10 09:05 UTC] cicer0 at arcor dot de
Description:
------------
While reading about different methods, I noticed by switching through two open tabs, that the fonts/typefaces differed. 

php.net-Admins don't allow cross-font-loading. It is only allowed for "www.php.net".

Message from the console:
2014-07-10 10:57:09.646 Font from origin 'http://www.php.net' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://php.net' is therefore not allowed access. 

Possible solutions:
1) allow CORS for "php.net" 
or (maybe better - regarding 'seo'/'consistency')
2) force clients to the "www.php.net" domain

As inspiration or just as informative backup:
https://github.com/h5bp/server-configs-nginx

Cheers:S



Expected result:
----------------
Same fonts on both domains.

Actual result:
--------------
Different fonts on both domains.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-10 11:33 UTC] tyrael@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: tyrael
 [2014-08-15 03:17 UTC] git at rvapps dot org
www.php.net is redirecting to php.net. Bug can be closed.
 [2015-11-08 19:30 UTC] imsadhappy at gmail dot com
Vote up this issue. A seemingly minor bug that completely breaks the php.net completely if accessed from www.php.net. In short: no fonts on www.php.net (too bad I can't add printscreen here).

Mind, this results are served from google serp. Better glue www.php.net with php.net and make 301 redirect to php.net (or vice versa, but then first - fix CORS for fonts). Google now has two versions of each php.net page in its serp: one with php.net/ other with www.php.net/ with the later one - broken.
 [2017-07-24 21:25 UTC] colinodell@php.net
-Status: Assigned +Status: Closed
 [2017-07-24 21:25 UTC] colinodell@php.net
www.php.net is redirecting to php.net where the issue does not exist.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC