CyberHosting

How to set correct Rewrite Rules???

Hello,
I migrate from Apache website https://marimar.pl/, and copy .htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

AddDefaultCharset utf-8
RewriteRule ^index.html$ index.php
RewriteRule ^([^,]*),([^,]*).html$ ?info=$1&mod=$2
RewriteRule ^([^,]*),([^,]*),([^,]*).html$ ?info=$1&mod=$2&form=$3
RewriteRule ^([^,]*),([^,]*),([^,]*),([^,]*).html$ ?info=$1&mod=$2&form=$3&menu=$4
RewriteRule ^([^,]*),([^,]*),([^,]*),([^,]*),([^,]*).html$ ?info=$1&mod=$2&form=$3&menu=$4&page=$5
RewriteRule ^([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*).html$ ?info=$1&mod=$2&form=$3&menu=$4&page=$5&id=$6
RewriteRule ^([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*).htm$ ?info=$1&mod=$2&form=$3&menu=$4&id=$5&co=$6
RewriteRule ^([^,]*),([^,]*),([^,]*),([^,]*),([^,]*)$ ?info=$1&mod=$2&form=$3&menu=$4&sort=$5

And this is no work with OpenLiteSpeed. Only main page work, click random button, all is 404 not found.

Thanks for help, guys!

Comments

Sign In or Register to comment.
CyberHosting CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion