I could do with seeing if my understanding is correct & apologies for the long winded post.
Q1 - Regarding the two URL rewrite lines highlighted in red below, is my understanding correct in thinking that if the typed URL in the browser is domain.com/products.php, then the URL shown in the browser address bar should be domain.com/pages/ & the same with the categories.php showing /category/? All I am getting is domain.com/products.php, it never shows domain.com/pages/ but when actually typing in domain.com/pages/ or domain.com/category to the browser address field I see the products & category pages correctly & the web address bar shows domain.com/pages/ or /category/.
Why is the rewrite not occuring? Or is this related to
Q2 below?
From the following article at the foot of the page it states
The LiteSpeed rewrite engine will stop processing rewrite rules after encountering an [L] flag to avoid looping while Apache mod_rewrite will stop processing rewrite rules for the current iteration only. This behavior is similar to that of the [END] flag in Apache mod_rewrite.https://www.litespeedtech.com/docs/webserver/config/rewriteQ2 - So the [L] flag appears in the following directives but I'm guessing it shouldn't or should it be replaced by something else that's required on a LiteSpeed server?
NOTE - The LightSpeed cache has been flushed & the browser does not cache anything
HTACCESS ENTRIES
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.com/$1 [R,L]
# REDIRECT www
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]
# REDIRECT index.php (THIS DOES NOT EFFECT SUBFOLDERS !!)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://domain.com/$1 [R=301]
# ECT URL Rewrites
RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B]RewriteRule ^pages/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B] RewriteRule ^manufacturer/?$ /categories.php?man=all [QSA,nc,L,B]
RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>
INCLUDES FILE ENTRIES
$seodetailurls=TRUE;
$seocategoryurls=TRUE;
$detlinkspacechar="-";
$seocaturlpattern="/category/%s";
$seoprodurlpattern="/pages/%s";
Steve
Bolton Lancashire