Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- www.example.com/country/location/london/home.html -> www.example.com/home.html [PT,L]
- www.example.com/country/location/germany/home.html -> www.example.com/home.html [PT,L]
- RewriteEngine On
- RewriteCond %{REQUEST_URI} ^/country/location/london/ [NC]
- RewriteRule ^/(.*).html$ /$1.html [NC,L,PT]
- RewriteCond %{REQUEST_URI} ^/country/location/germany/ [NC]
- RewriteRule ^/(.*).html$ /$1.html [NC,L,PT]
Add Comment
Please, Sign In to add comment