Modérateur: Equipe
curl -IL 'http://forum.planete-astronomie.com/feed' HTTP/1.1 403 Forbidden Content-Location: feed.php
HTTP/1.1 301 Moved Permanently Content-Location: feed.php Location: /app.php/feed
E_WARNING : type 2 -- simplexml_load_file(http://www.planete-astronomie.eu/share/sitemap.xml1): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden -- at line 6
Failed loading the XML
failed to load external entity "http://www.planete-astronomie.eu/share/sitemap.xml"
...
c'est une sécurité du site distant qui rejette les requête faites sans user agent. Il faut donc en indiquer un.
Tu dois donc récupérer ton XML avec file_get_contents en lui associant un user-agent.
de cette façon là. (j'ai testé, ça fonctionne)
HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php Location: /feed HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php Location: /feed HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php Location: /feed HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php Location: /feed HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php Location: /feed HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php Location: /feed HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Content-Location: feed.php
RewriteEngine on RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteBase / RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$2&start=$4 [QSA,L,NC] RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC] RewriteRule ^annonces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC] RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC] RewriteRule ^ressources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC] RewriteRule ^(membre|[a-z0-9_-]*-u)([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC] RewriteRule ^(membre|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC] RewriteRule ^(groupe|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC] RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC] RewriteRule ^sujets-actifs(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC] RewriteRule ^sans-reponses(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC] RewriteRule ^nouveaux-messages(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC] RewriteRule ^equipe\.html$ /memberlist.php?mode=leaders [QSA,L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ app.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-z0-9_-]+)\.html$ /viewforum.php?forum_uri=$1 [QSA,L,NC]
# The following 3 lines will rewrite URLs passed through the front controller # to not require app.php in the actual URL. In other words, a controller is # by default accessed at /app.php/my/controller, but can also be accessed at # /my/controller # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ app.php [QSA,L]
galixte a écrit:J’ai constaté des retours dans le même sens il ya quelques semaines sur .com, peut-être y-t-il un ticket d’ouvert sur le tracker de bogues: https://tracker.phpbb.com/projects/PHPBB3/issues
galixte a écrit:Aussi, quand tu parles d’activer la réécriture des adresses URL, Il y a une option en ce sens dans phpBB depuis la page « Paramètres du serveur », as-tu comparé en l’activant/désactivant ?
# # Uncomment the statement below if URL rewriting doesn't # work properly. If you installed phpBB in a subdirectory # of your site, properly set the argument for the statement. # e.g.: if your domain is test.com and you installed phpBB # in http://www.test.com/phpBB/index.php you have to set # the statement RewriteBase /phpBB/ # RewriteBase /
galixte a écrit:Ainsi, j’ai pu désactiver l’option : Forcer les paramètres URL du serveur et réactiver l’option : Activer la réécriture d’URL les liens fonctionnent normalement, sans /app.php/ dans les liens.
# The following 3 lines will rewrite URLs passed through the front controller # to not require app.php in the actual URL. In other words, a controller is # by default accessed at /app.php/my/controller, but can also be accessed at # /my/controller RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ app.php [QSA,L]
galixte a écrit:Tu pourrais aussi, comparer en mettant un fichier ./.htaccess brut sans tes redirections pour comparer si cela provient de l’unes d’elles.
Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 1 invité