Hello,
New to using CyberPanel and currently using it with OLS. Some of my RewriteRules are working while others are not and I’m not really sure what the problem could be.
I’m waiting on our webhost IT to help but they have been a bit unhelpful by telling me that rewrites cannot happen with non-existent pages. That’s my understanding of what the redirects are for.
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$ [NC]
RewriteRule ^engineering/hose\-reel\.htm$ http://www.pacificmarine.net/engineering/industrial-metal-heavy-duty-hose-reel.htm [R=301,L,NC]
RewriteCond %{QUERY_STRING} ^$ [NC]
RewriteRule ^marine\-deck/marine\-fenders/boat\-buoy\-cm\-series\.htm$ http://www.pacificmarine.net/marine-deck/marine-fenders/polyform-boat-buoy-cm-series.htm [R=301,L,NC]
I have a lot more rules for 301s but the above is an example of two. Can someone help me to understand why the first rule is not working but the second rule is?
I use the following generator to make these redirects and as far as I can tell there are no syntax errors in either of the rules above.