404 page introuvable apres install

Aide à l'installation, à la mise en place d'une mise à jour, d'une configuration ou à l'utilisation.
Post Reply
BOURDON
Posts: 13

404 page introuvable apres install

Post by BOURDON »

bonjour
jai error 404 sur toute mes pages les fichiers htacess fourni avec le script me donne error 500 (ionos ou htacessbase) .
Le fichier htacess de mon hebergeur lws fonctionne pour la page d acceuil mais jai les pages introuvables pour les annonces
https://48booking.com
voici mon htaccess de mon hebergeur lws
######### Generated by Lwspanel #########
######### Ne pas modifier / Don't touch #########

Order Allow,Deny
Allow From All
Deny From 113.172.37.231
Deny From 123.21.5.18
Deny From 159.192.232.51
Deny From 171.228.103.52
Deny From 175.126.232.146
Deny From 192.166.221.65
Deny From 217.126.166.205
Deny From 37.114.145.139
Deny From 77.34.21.222
Deny From 78.159.56.217
Deny From 81.0.156.54
Order Allow,Deny
Allow From All
Deny From 113.172.37.231
Deny From 123.21.5.18
Deny From 159.192.232.51
Deny From 171.228.103.52
Deny From 175.126.232.146
Deny From 192.166.221.65
Deny From 217.126.166.205
Deny From 37.114.145.139
Deny From 77.34.21.222
Deny From 78.159.56.217
Deny From 81.0.156.54
RewriteEngine on
RewriteCond %{HTTP_HOST} (.*\.)?48booking.com [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*\.)?48booking.com [NC]
RewriteRule \.(bmp|dib|rle|emf|wmf|gif|jpg|jpeg|jpe|jif|jfif|pcx|png|tga|tiff|tif)$ - [NC,F,L]

######### End Generated by Lwspanel #########

Sannonce
Posts: 22

Post by Sannonce »

Code: Select all

Order Allow,Deny
Allow From All
Order Allow,Deny
Allow From All

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^www.48booking\.com [NC]
RewriteRule ^(.*)$ https://48booking.com/$1 [L,R=301]
RewriteRule ^(fr|en|es|it)/$ ?lang=$1 [L]
RewriteRule ^(fr|en|es|it)$ /$1/ [R]
RewriteRule ^(fr|en|es|it)/index.htm$ index.htm [L]
RewriteRule ^(fr|en|es|it)/([.-_/a-z0-9]*).php$ $2.php?lang=$1 [QSA]

### Rewriting ulrs ads, shops and page by language ###

RewriteRule ^(fr|en|es|it)/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+-([0-9]+)$ router.php?lang=$1&id=$2 [QSA]
RewriteRule ^(fr|en|es|it)/[a-zA-Z0-9-]+$ router.php?lang=$1 [L]
RewriteRule ^(fr|en|es|it)/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php?lang=$1 [L]
RewriteRule ^(fr|en|es|it)/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php?lang=$1 [L]
RewriteRule ^(fr|en|es|it)/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php?lang=$1 [L]
RewriteRule ^(fr|en|es|it)/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php?lang=$1 [L]

### Rewriting ulrs ads, shops and page whithout language ###

RewriteRule ^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+-([0-9]+)$ router.php?id=$1 [QSA]
RewriteRule ^[a-zA-Z0-9-]+$ router.php [L]
RewriteRule ^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php [L]
RewriteRule ^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php [L]
RewriteRule ^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php [L]
RewriteRule ^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$ router.php [L]
ErrorDocument 404 https://48booking.com/404
essayes ça
Pour les deny des Ip c'est toi qui vois

BOURDON
Posts: 13

Post by BOURDON »

merci pour ton aide
j'ai essayé ton code sa me donne error 500 ,j'ai remis le fichier de mon hébergeur en attendant de trouvé la solution.

BOURDON
Posts: 13

Post by BOURDON »

Résolu apres adaptation du fichier htacess il fallait faire des redirection 301

Micropuce
Posts: 8

Post by Micropuce »

Bonjour,

Pourrais tu me dire exactement ce que tu as fais comme redirection car je suis chez IONOS et j’ai le même soucis.

Merci d’avance

User avatar
var a table
Posts: 144
Contact:

Post by var a table »

Micropuce wrote:
Thu 3 Dec 2020 11:26
Bonjour,

Pourrais tu me dire exactement ce que tu as fais comme redirection car je suis chez IONOS et j’ai le même soucis.

Merci d’avance
Slt chez ionos tu as le htaccess a configurer et enlever les #
Image

Micropuce
Posts: 8

Post by Micropuce »

Bsr,
J’ai fait une partie .. mais ça ne marche pas
Peux tu me montrer ton code du fichier htaccess ?
Merci d’avance

User avatar
var a table
Posts: 144
Contact:

Post by var a table »

Micropuce wrote:
Thu 3 Dec 2020 17:20
Bsr,
J’ai fait une partie .. mais ça ne marche pas
Peux tu me montrer ton code du fichier htaccess ?
Merci d’avance
je ne suis plus chez inos j'ai créer mon propres hébergeur. https://www.voshebergement.com

Test cela viewtopic.php?f=14&t=240
Image

clasificados
Posts: 5

Post by clasificados »

viewtopic.php?f=17&t=339
Options +FollowSymlinks
RewriteEngine on

#301 > HTTS without www

#RewriteCond %{HTTP_HOST} ^www\. [OR]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*) https://misitio.es/$1 [QSA,L,R=301]

### Rewriting index and general urls ###

RewriteRule ^index.php$ / [R=301,L]
RewriteRule ^(fr|en|es|it|ru|ar)/index.php$ / [R=301,L]
RewriteRule ^(fr|en|es|it|ru|ar)/$ /?lang=$1 [L]
RewriteRule ^(fr|en|es|it|ru|ar)$ /$1/ [R]
RewriteRule ^(fr|en|es|it|ru|ar)/index\.htm$ /index.htm [L]
RewriteRule ^(fr|en|es|it|ru|ar)/([.-_/a-z0-9]*).php$ /$2.php?lang=$1 [QSA]

### Rewriting ulrs ads, shops and page by language ###

RewriteRule ^(fr|en|es|it|ru|ar)/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+-([0-9]+)$ /router.php?lang=$1&id=$2 [QSA]
RewriteRule ^(fr|en|es|it|ru|ar)/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php?lang=$1 [L,QSA]
RewriteRule ^(fr|en|es|it|ru|ar)/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php?lang=$1 [L,QSA]
RewriteRule ^(fr|en|es|it|ru|ar)/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php?lang=$1 [L,QSA]
RewriteRule ^(fr|en|es|it|ru|ar)/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php?lang=$1 [L,QSA]
RewriteRule ^(fr|en|es|it|ru|ar)/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php?lang=$1 [L,QSA]

### Rewriting ulrs ads, shops and page whithout language ###

RewriteRule ^[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+-([0-9]+)$ /router.php?id=$1 [QSA]
RewriteRule ^[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php [L]
RewriteRule ^[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php [L]
RewriteRule ^[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php [L]
RewriteRule ^[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php [L]
RewriteRule ^[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+/[ء-يa-zA-ZA-Яа-я0-9-]+$ /router.php [L]

ErrorDocument 404 https://misitio.es/404

Post Reply