Alternative to multiveiws

Discussion in 'Site & Server Administration' started by johneva, Mar 21, 2011.

  1. #1
    Hi all

    I have a problem with one of my sites where the hosting company I use has now switched from Apache to Litespeed, problem is multiveiws is not available now.

    I found this as a way round it just a rewrite using .htaccess file.

    http://www.litespeedtech.com/support/forum/showthread.php?t=298

    # Multiviews
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !.+php* 
    RewriteCond %{DOCUMENT_ROOT}/$1\.php -f
    RewriteRule ^([^/]+)/?(.*)$ $1.php/$2 [L]
    
    Code (markup):
    But problem I am having is that works great on this

    http://www.example.com/file/2

    but when it comes to

    http://www.example.com/control-panel/file/2

    It wont work for some reason. Can anybody help me out with this issue please?

    Cheers
    John
     
    johneva, Mar 21, 2011 IP