Rewrite maps

#1
Hi there,

I have a txt file with a couple of thousand Apache style redirects in.. for example..

RewriteRule ^/myfile.htm http://www.domain.com/myfile [R=301,L]

Under apache I would just do

Include /path/to/my/redirect_file

"Include" doesn't seem to be allowed in LS. I have played around a little with the RewriteMaps but can't seem to get anything working.

How is this supposed to be done?

Thanks
Henry
 

mistwang

LiteSpeed Staff
#8
Include directive won't work with native configurations, need to add those configuration from the web console.

Anyway, letting a web server go through thousands of rewrite rules for each request is not a good idea either. Do you really have to do that way?
 
Top