problema .htaccessIONOS

Ayuda con la instalación, implementación de una actualización, configuración o uso.
Post Reply
clasificados
Posts: 5

problema .htaccessIONOS

Post by clasificados »

Buenas a todos

alguien me puede echar una mano por favor tengo un alojamiento en ionos.es y tengo este problema

Página no encontrada en publicar anuncio he modificado el .htaccessIONOS con el nombre de mi sitio pero sigue el problema.

agradeceria cualquier ayuda
Options +FollowSymlinks
RewriteEngine on

#301 > HTTS with www

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

#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://www.misitio.es/404

clasificados
Posts: 5

Post by clasificados »

al final consigue arreglarlo tenia que eliminar esta parte

#301 > HTTS with www

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


ya que no tengo www. al principio y eliminar www en ErrorDocument 404 https://misitio.es/404 y todo perfecto

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