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
What if I exceed bandwidth limit of my hosting account?

If you exceed the bandwidth limit for your web hosting account, your account will be suspended...

Can I use svn (version control)?

svn is only supported by our dedicated servers. svn is NOT available on our shared hosting...

Where can I see your CPanel Demo?

We do have a CPanel demo for you that will give you a feel of using CPanel. Please remember that...

How do I upload files to my server using WinSCP?

Follow the steps shown below to upload files to your server:1) Download and install WinSCP tool...

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...