VirtualHost rewrite conditions for datatables

VirtualHost rewrite conditions for datatables

xhytrkxhytrk Posts: 1Questions: 1Answers: 0
edited January 2015 in Free community support

I have configured datatables with bootstrap 3 where the table and its entries are displayed as expected, like in this running sample: http://jsfiddle.net/zuvpfowv/

Because I am using rewrite conditions I had to add one line in my virtual host to display the png-images:
"RewriteRule ^\/webapp/(.*).png$ /webapp/$1.png [L]"

But datatables 'entries per page', 'search filter' and 'pagination' still does not work.
I cannot figure out why.

Here is my VirtualHost configuration:

<VirtualHost *:443>
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/htdocs
    
    <directory /var/www/htdocs>
        allow from all
        </directory>
    
    RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^\/webapp/(.*)\.css$ /webapp/$1.css [L]
    RewriteRule ^\/webapp/(.*)\.png$ /webapp/$1.png [L]
    RewriteRule ^\/webapp/(.*)\.js$ /webapp/$1.js [L]
    RewriteRule ^\/webapp/(.*)\.eot$ /webapp/$1.eot [L]
    RewriteRule ^\/webapp/(.*)\.svg$ /webapp/$1.svg [L]
    RewriteRule ^\/webapp/(.*)\.ttf$ /webapp/$1.ttf [L]
    RewriteRule ^\/webapp/(.*)\.woff$ /webapp/$1.woff [L]
        RewriteRule ^\/webapp/(.*)$ /webapp/index.php [L,QSA]
    
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
</VirtualHost>

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin
    edited January 2015 Answer ✓

    You'd be best asking on ServerOverflow or some similar forum for support about how to configure your web-server.

    Allan

This discussion has been closed.