.htaccess file for LiteSpeed server #3075
4O4A
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for sharing @4O4A I'm sure others will find it helpful |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I host my log on LiteSpeed server. Since default .htaccess file doesn't work on LiteSpeed servers, here is working code:
Options -Indexes
ServerSignature off
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/backup/$
RewriteRule ^(.*)$ /index.php?/$1 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
RedirectMatch 404 ^/.git`
73, Dragan 4O4A
Beta Was this translation helpful? Give feedback.
All reactions