-1

I'm using Litespeed and clean-urls has been activated.

When I upload .htaccess file, my Drupal does not render links and all link/buttons/drop-down menus expands autttomatically. When I remove .htaccess, website Works without problem.

*.htaccess is enabled from LiteSpeed configuration.

What is the problem? How can I use clean-urls?

2
  • Perhaps something wrong with your .htaccess file is my best guess. Can you pastebin it or something so we can take a look. Of course take out any sensitive stuff.
    – Beebee
    Jan 21, 2015 at 22:08
  • Hello, You can see file content from following link; paste.ubuntu.com/9810781 Thanks.
    – Can
    Jan 21, 2015 at 22:21

2 Answers 2

0

... essentially if your content just keeps getting cached by it [litespeed] you will have to keep the compression lines in your .htaccess commented out to prevent the javascript from breaking ...

Source

So essentially he's saying to comment these lines out:

<IfModule mod_headers.c>
  # Serve gzip compressed CSS files if they exist and the client accepts gzip.
  RewriteCond %{HTTP:Accept-encoding} gzip
  RewriteCond %{REQUEST_FILENAME}\.gz -s
  RewriteRule ^(.*)\.css $1\.css\.gz [QSA]

  # Serve gzip compressed JS files if they exist and the client accepts gzip.
  RewriteCond %{HTTP:Accept-encoding} gzip
  RewriteCond %{REQUEST_FILENAME}\.gz -s
  RewriteRule ^(.*)\.js $1\.js\.gz [QSA]

  # Serve correct content types, and prevent mod_deflate double gzip.
  RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
  RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]

  <FilesMatch "(\.js\.gz|\.css\.gz)$">
    # Serve correct encoding type.
    Header set Content-Encoding gzip
    # Force proxies to cache gzipped & non-gzipped css/js files separately.
    Header append Vary Accept-Encoding
  </FilesMatch>
</IfModule>

I'm no expert in litespeed either, so I'm not sure if this is your problem.

0

Please follow the steps to debug- 1. check if mod_rewrite is enabled on server 2. Check by concatenation if index.php in URL if render page properly. Concatenation of URL will be such as- http://YOUR-URL.COM/index.php/innerpageroute

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.