Openlitespeed doesn't recognise rewrite base rewrites

wanah

Well-Known Member
#1
Hello,

I've just started testing openlitespeed. I had to modify my rewrite rules from :

RewriteBase /
RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]

to :

RewriteRule ^/forum\.html$ /forum/index.php [QSA,L,NC]

Is this normal ?

Thanks :)
 

wanah

Well-Known Member
#3
I put it in the openlitespeed admin pannel.

I expected :

RewriteBase /
RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]

to work but it did not and it seems that openlitespeed doesn't understand RewriteBase which is a shame as losts of script except this code to work.
 

Michael

Well-Known Member
Staff member
#4
Howdy,

The important thing to remember here is that the WebAdmin console acts like an httpd.conf file. The RewriteBase directive is only for .htaccess files. We may figure out a workaround for this in the future, but, for the time being, just remember that all rewrites should be written as though they are going into an .htaccess file.

Cheers,

Michael
 

wanah

Well-Known Member
#5
Hello Michael, I'm sorry but I think you have said two different things :

he WebAdmin console acts like an httpd.conf file
just remember that all rewrites should be written as though they are going into an .htaccess file.

So should I write the rewrites like a .htaccess file or like httpd.conf file ? Because the rewrites that didn't work were taken from an existing .htacess file that works with litespeed enterprise.
 

Michael

Well-Known Member
Staff member
#6
Oops. Yes, all rewrites should be written as though they are going into an httpd.conf file...

Sorry about that...

m
 

wanah

Well-Known Member
#7
OK thanks, shame I was hopeing it was possible to copy / paste the contents of the main .htaccess file to the openlitespeed web admin…
 

Michael

Well-Known Member
Staff member
#8
I understand completely. This is something we will be considering in the future as we try to make OpenLiteSpeed easier to use.

Cheers,

Michael
 
Top