dimanche 5 novembre 2017

Redirect all requests to /web/file_*

in my web directory i have files like:

file_one
file_two
file_three

Right now, Iam using .htaccess with:

redirect /web/file_three  http://www.example.com

If Id want to redirect all the file_ request Id have to use 3 lines in .htaccess - one for each of file_

Can I use something like:

redirect /web/file_*  http://www.example.com  

- redirect everything that starts with "file_"




Aucun commentaire:

Enregistrer un commentaire