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 to a different hosting plan anytime?

Yes, you can switch to any other hosting plans anytime you wish. We do not charge any setup fees...

How do I create an Addon Domain?

An Addon Domain is similar to a subdomain and created in much the same way. An Addon Domain has...

Which app can I install with my 1-click installer?

You can easily install a lot of scripts with our 1 click automatic installers. To see a complete...

Why do I get "Internal Server Error"?

When you are browsing a .html (or .php) file in your account, you may sometimes see an error page...

Can I use svn (version control)?

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