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
How do I auto-redirect my domain to www?

To redirect your domain from http://mydomain.com to http://www.mydomain.com, add the following...

Does your hosting support FFmpeg?

Yes, ALL the Web Hosting plans at GigaPros fully support FFmpeg. Now you can easily start a...

Do you support GD & ImageMagick?

Yes, we do support GD & ImageMagick modules.The module-binaries are located in under this...

How do I auto-redirect HTTP to HTTPS (SSL)?

To auto redirect from http to https (SSL) in Apache, add the following code to the top level...

This page contains both secure and nonsecure items...

This below message occurs when you attempt to view a web page using https that contains images...