htaccess

  1. J

    Conditional X-Frame-Options

    Hi! I am trying to set X-Frame-Options for all pages except all pages of this path: ^/mypath/ Whatever I have tried it won't work. For example, using the below code in my .htaccess I always end up with "deny" - even if I switch my condition check from !~ to =~ I still get "deny" for the pages...
  2. B

    htaccess apache to litespeed (mb some syntax problem)

    Hello, got a such problem, some clients come on a wrong link cause of converted special symbols: they got /%23search instead of /#search (anchor link) So in apache should work well this phrase: RewriteRule ^(.*)?%23(.*)?$ $1#$2 [NE,R=301,L,B] On my shared hosting with litespeed it doesn't...
  3. P

    htaccess odd behaviour

    Hi I have a working .htaccess code that works well in Apache. But is behaving odd in LiteSpeed server. Interestingly I tried two LightSpeed hosts and both are behaving differently. RewriteEngine on RewriteCond %{REQUEST_URI} \.(html?|js)$ [NC] RewriteRule ^(.*)$...
  4. W

    htaccess from Apache to Litespeed

    Hi there, I am trying out Litespeed, but having a hard time making mod rewrite work. Can anyone help me make this htaccess file works on LS, please! Thank you so much!
  5. V

    [solved] htaccess environment variable assignment fails in LSWS but works in Apache

    I've been trying to configure CORS headers on my hosting company's LiteSpeed Web Server via .htaccess, but I've run into what seems like a bug with LiteSpeed's handling of environment variables. The hosting company upgraded my instance to the latest LSWS 5.2.7 to see if that would help, but the...
  6. S

    Migrate Apache2 htaccess to Litespeed

    Hallo, im so newbie in Litespeed, usually i use nginx and apache, so i have problem when my web hosting migrate to litespeed, here bellow is my .htaccess on apache2: RewriteEngine on RewriteCond $1 !^(index\.php|home\.txt) RewriteRule ^admin/ index.php/admin/index/admin/ RewriteRule ^admin...
  7. J

    [Solved] Setting CORS (cross-origin resource sharing)

    Hi, Was hoping someone could help us setting up a rule in .htaccess for CORS policy for Access-Control-Allow-Origin. We found a bunch of posts on StackOverflow relating to this, all with the same general proposed solution. We implemented the accepted solution trying a variety of variations ...
  8. G

    WordPress Multisite, Network Admin, CDN and .htaccess.

    Hello Litespeed and users, I have a question about WordPress Multisite, Network Admin, CDN and .htaccess. I have my multisite running on Litespeed Web Server with the Litespeed Cache plugin. Question Network Admin: I noticed that i have no Litespeed options in the netwotk admin...
  9. G

    [Resolved] Wordpress Multisite - Network Admin - CDN - .htaccess

    Hello Litespeed and users, I have a question about WordPress Multisite, Network Admin, CDN and .htaccess. I have my multisite running on Litespeed Web Server with the Litespeed Cache plugin. Question Network Admin: I noticed that i have no Litespeed options in the netwotk admin...
  10. R

    301 Redirect not working

    Hi I am trying to get a 301 redirect working for a single page and currently it is not. I am trying to understand if this is because of some interaction with LiteSpeed Cache I have tried adding this to the htaccess file Redirect 301 "/old-page.html" "/new-page.html" This didn't work, so I...
  11. S

    htaccess is ignored?

    Hello, Tried search here but no luck, perhaps asked with wrong keywords. Have trial version installed, moving website from apache. Found that .htaccess is ignored completely: added "blablah" at the very top of the file and see no errors either in vhost logs or the server log at all...
  12. F

    Litespeed cache and .htaccess

    Hi, I recently passed the site on a litespeed server, but I do not understand the htaccess file as it should be configured. Do you think that the htaccess file is so well written? # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} 80 RewriteCond...
  13. K

    [Resolved] [BUG] FileETag Directive in HTACCESS

    Seems there is a bug in the FileEtag directive. Here is a test to show what i mean. The test files will be: PNG Image file : test.png CSS Stylesheet file : test.css Now, with an empty .htaccess file the response headers are as follows (take note of the ETag header for each file): Response...
Top