mod_rewrite problem(404 Not Found)

#1
Hi,
This rule worked at Apache, But not worked at Litespeed! (article or section 404 Not Found)

RewriteEngine on
Options +FollowSymlinks
Options -Indexes
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond $1 !^(index\.php|index\.html|images|uploads)
RewriteRule ^(.*)$ index.php/$1 [L]

RewriteRule ^(.+).html sections?id=$1 [nc]
RewriteRule ^(.+).html article?id=$1 [L]
 

NiteWave

Administrator
#2
change
RewriteCond $1 !^(index\.php|index\.html|images|uploads)
to
RewriteCond %{REQUEST_URI} !^/(index\.php|index\.html|images|uploads)

see if works.

p.s. for
RewriteRule ^(.+).html sections?id=$1 [nc]
RewriteRule ^(.+).html article?id=$1 [L]

not sure if the 2 lines ever works, especially 2nd line. looks will never be reached or executed.
 
Top