How can I use Multiviews with LiteSpeed web server?

Multiviews is a webserver option directly supported by Apache, but not supported by LiteSpeed. However, you can easily use RewriteCond / RewriteRule to ahieve the same functionality as Multiviews.


If you have a URI that uses PATHINFO, here's how the redirection should work:
/topic/Office/Work ==> /topic.php/Office/Work
/update/Office/Work ==> /update.php/Office/Work/topic-> /topic.php


Here's a code example to implement Multiviews that uses PATHINFO:

# Multiviews example code...use this in a .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_URI} !.+php*
RewriteCond %{DOCUMENT_ROOT}/$1\.php -f
RewriteRule ^([^/]+)/?(.*)$ $1.php/$2 [L]
 

For more examples on how to do it, please check the following links...
http://litespeedtech.com/support/forum/showthread.php?t=234
http://litespeedtech.com/support/forum/showthread.php?t=298
http://www.litespeedtech.com/support/forum/showthread.php?t=1143

Was this answer helpful?

Also Read
Can I switch between PHP-4 and PHP-5?

Yes, you can easily switch between PHP-4 & PHP-5 anytime you wish. To see how, see the...

Do you offer Shared SSL?

Yes, ALL our shared hosting plans include FREE Shared SSL.Shared SSL can be used to securely run...

Domain name not browsable, but IP can! What's wrong?

The ProblemWe have seen this problem rarely with some of our customers. They CAN browse their...

What is the path to sendmail?

The sendmail path is /usr/sbin/sendmail

Can I run an YouTube clone on your server?

Yes, you can certainly run YouTube clone softwares on our server. All our servers have...