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 work with suPHP and .htaccess files?

Some configuration lines won't work with suPHP - at least, not within the .htaccess file. In...

How often do you back up my site ?

Your entire website content (including all e-mails, MySQL databases etc) are automatically backed...

Do you offer Shared SSL?

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

Minimum interval for cron jobs?

You must choose an interval of MORE THAN 5 minutes to run any of your cron jobs. We DO NOT allow...

How to change file permissions in Joomla components?

The ProblemThis is a known issue with Joomla. When you install any Joomla components thru...