Im trying to implement friendly URLs on website that have SSL certificate so I need redirect to https also. The problem is I tried literally everything that is on internet and nothing seems to work. When Im trying to access website by friendy URLs then I have 404 error. This is my htaccess latest version.
RewriteEngine on
# Przekierowanie domeny
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} !^www\.dutchflowers\.ro$ [NC]
RewriteRule ^(.*)$ https://www.dutchflowers\.ro/$1 [R=301,L]
# Przekierowanie 301
RewriteRule ^https://dutchflowers.ro/about-english https://dutchflowers.ro/about.html [R=301,L]
RewriteRule ^https://dutchflowers.ro/home https://dutchflowers.ro/index.html [R=301,L]
RewriteRule ^https://dutchflowers.ro/contact-english https://dutchflowers.ro/contact.html [R=301,L]
RewriteRule ^https://dutchflowers.ro/home-english https://dutchflowers.ro/index_eng.html [R=301,L]
RewriteRule ^https://dutchflowers.ro/about https://dutchflowers.ro/about_ro.html [R=301,L]
RewriteRule ^https://dutchflowers.ro/contact https://dutchflowers.ro/contact_ro.html [R=301,L]
Aucun commentaire:
Enregistrer un commentaire