The requested URL / was not found on this server

Bonjour à tous,

Je me permet de demander votre aide puisque je fais fasse à un problème sur mon site internet, et j'ai beau chercher, je ne trouve aucune solution qui fonctionne.

J'ai souhaité passer mon site (wordpress) en HTTP vers HTTPS, j'ai suivi les conseils d'OVH, et j'ai aussi fait les modifications sur mon WP.

Mon site est bien en HTTPS. Ma page d'accueil fonctionne parfaitement, mais toutes les autres pages sont hors-services.
Lorsque je clique sur n'importe quelle page j'ai le message d'erreur suivant :



J'ai du faire une mauvaise manipulation mais je ne me souviens pas laquelle… J'ai modifié les fichiers htaccess.
J'ai remis le fichier Htaccess original mais ça n'a rien donné.

Je suis vraiment perdu, je vous remercie par avance pour le temps que vous prendrez pour m'aider à résoudre ce problème.

S'il manque des informations pour vous aider, n'hésitez pas à me le faire savoir.

Brice

Bonjour,

sans l'url, difficile de savoir ..

voila mon site : https://lapetitemusic.com

Quel est le contenu actuel du .htaccess ?

Voila le C/C de mon fichier htaccess<br />J&#39;ai seulement rajouté les dernières lignes quand je l&#39;ai modifié pour la redirection du http<br /><br />&gt; # BEGIN W3TC Browser Cache<br />&gt; <br />&gt;         AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg&#43;xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg&#43;xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel<br />&gt;     <br />&gt;         # DEFLATE by extension<br />&gt;         AddOutputFilter DEFLATE js css htm html xml<br />&gt;     <br />&gt; <br />&gt; <br />&gt;     <br />&gt;         Header append Vary User-Agent env&#61;!dont-vary<br />&gt;     <br />&gt; <br />&gt; <br />&gt;     <br />&gt;          Header unset Last-Modified<br />&gt;     <br />&gt; <br />&gt; # END W3TC Browser Cache<br />&gt; # BEGIN W3TC CDN<br />&gt; <br />&gt; <br />&gt;     Header set Access-Control-Allow-Origin &#34;*&#34;<br />&gt; <br />&gt; <br />&gt; # END W3TC CDN<br />&gt; # BEGIN W3TC Page Cache core<br />&gt; <br />&gt;     RewriteEngine On<br />&gt;     RewriteBase /<br />&gt;     RewriteCond %{HTTPS} &#61;on<br />&gt;     RewriteRule .* - [E&#61;W3TC_SSL:_ssl]<br />&gt;     RewriteCond %{SERVER_PORT} &#61;443<br />&gt;     RewriteRule .* - [E&#61;W3TC_SSL:_ssl]<br />&gt;     RewriteCond %{HTTP:Accept-Encoding} gzip<br />&gt;     RewriteRule .* - [E&#61;W3TC_ENC:_gzip]<br />&gt;     RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]<br />&gt;     RewriteRule .* - [E&#61;W3TC_PREVIEW:_preview]<br />&gt;     RewriteCond %{REQUEST_METHOD} !&#61;POST<br />&gt;     RewriteCond %{QUERY_STRING} &#61;&#34;&#34;<br />&gt;     RewriteCond %{REQUEST_URI} \/$<br />&gt;     RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]<br />&gt;     RewriteCond &#34;%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}&#34; -f<br />&gt;     RewriteRule .* &#34;/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}&#34; [L]<br />&gt; <br />&gt; # END W3TC Page Cache core<br />&gt; # BEGIN WordPress<br />&gt; <br />&gt; RewriteEngine On<br />&gt; RewriteBase /<br />&gt; RewriteRule ^index\.php$ - [L]<br />&gt; RewriteCond %{REQUEST_FILENAME} !-f<br />&gt; RewriteCond %{REQUEST_FILENAME} !-d<br />&gt; RewriteRule . /index.php [L]<br />&gt; <br /><br />&gt; # END WordPress<br /><br />&gt; # Redirection vers HTTPS <br />&gt; RewriteCond %{SERVER_PORT} ^80$ [OR]<br />&gt; RewriteCond %{HTTPS} &#61;off<br />&gt; RewriteRule ^(.*)$ https://lapetitemusic.com/$1 [R&#61;301,L]<br /><br />&gt; # Redirection du www vers non-www en HTTPS<br />&gt; RewriteCond %{HTTP_HOST} ^www\.lapetitemusic\.com [NC]<br />&gt; RewriteRule ^(.*)$ https://lapetitemusic.com/$1 [R&#61;301,L]

Dans quel dossier de /www se trouve installé ton site ?

Je m'excuse par avance d'être novice la dedans.
Voila mon dossier /www



Je ne sais pas si ça répond à ta question ?
En tout cas merci pour le temps que tu prends

Je pense que tu devrais récupérer le htaccess qu'OVH sauvegarde toutes les nuits.

https://docs.ovh.com/fr/fr/web/hosting/restauration-ftp-filezilla-espace-client/
En modifiant ton identifiant tu as accès aux anciens backup

Merci pour ton aide.
Le site fonctionne correctement !

Bonne soirée

Bonjour à tous,
Je sollicite votre aide suite à ce message sur toutes mes pages : "The requested URL was not found on this server ".
En revanche, je n'y connais rien à la programmation :frowning:
Voici le lien de mon site : https://lescreademarie.com/
Mille mercis
Marie

souci réglé à priori
https://screenshots.firefox.com/8bdb4mf2X1zqgqmy/lescreademarie.com

Le site s'affiche, mais lorsque je clique sur les onglets ; je n'ai rien .
Merci beaucoup pour le retour :slight_smile:

ah oui, pardon

tu as un wordpress bien pluginé ;)<br /><br />&#96;&#96;&#96;text<br />curl --head https://lescreademarie.com/ateliers/<br />  HTTP/1.1 404 Not Found<br />  Content-Type: text/html; charset&#61;iso-8859-1<br />&#96;&#96;&#96;<br />c&#39;est ton .htaccess je dirais<br /><br />tu peux aller dans l&#39;administration?<br />réglages / permaliens : enregistrer<br />c&#39;est mieux?<br /><br />sinon, en ftp, renommer .htaccess en .htacces.old<br />c&#39;est ***temporaire***<br />c&#39;est mieux? <br /><br />si toujours pas mieux, tu peux mettre le contenu de ton .htaccess sur pastery.net?

Merci beaucoup :slight_smile:
Allez hop, je mets au travail !!!

Bonjour,

J'ai mis en ligne mon site il y a quelques jours.
Lorsque je navigue entre les onglets via mon menu, il n'y a aucun problème.
Cependant, lorsque je ne suis pas sur la page d'accueil et que je recharge la page, j'ai aussi cette erreur : "The requested URL was not found on this server.".

Voici mon site: https://christinedumesnil-psychologue.site/
Auriez vous des pistes ou des conseils ?

Merci beaucoup

problème réglé


?

Non, c'est quand je ne suis pas sur la page d'accueil et que je recharge.
Par exemple sur https://christinedumesnil-psychologue.site/ma-pratique



```text
curl --head -XGET --user-agent Firefox https://christinedumesnil-psychologue.site/ma-pratique
HTTP/2 404
content-type: text/html; charset=iso-8859-1
```

ton `.htaccess` doit bloquer les reqêtes sans referer, ce qui est une grosse bêtise

Je n'ai pas l'impression d'avoir de fichier .htaccess et je ne sais pas vraiment où le mettre ni ce que je dois y ajouter. Est ce que j'en crée un à la racine du projet ?

Désolée et merci beaucoup pour votre aide !