wolfie
wolfie

Reputation: 97

htaccess redirection for multiple URLs

I have a site with 2 folders /images, /videos

I'd like the user that comes to domain.com/images-large or domain.com/imgs to be given the contents of images (there is index.html file). The same applies for vids/ videos-large -> videos

Upvotes: 1

Views: 30

Answers (1)

Jon Lin
Jon Lin

Reputation: 143856

Try

RewriteEngine On
RewriteRule ^(?:images-large|imgs)(?:/(.*)|/?)$ /images/$1 [L]
RewriteRule ^(?:videos-large|vids)(?:/(.*)|/?)$ /videos/$1 [L]

Upvotes: 2

Related Questions