lacee1986
3/22/2017 - 2:54 PM

Redirections

Redirections

# redirect index.html to base url - make sure its the first rule!
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301,L]

# redirect specific page - url between \b tags
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /\bespa-spa-hotels-ireland-kerry\b[^%?\ ]*\%
RewriteRule ^. http://www.theeurope.com/espa-spa-hotels-ireland-kerry [R=301,L]