#Apache Error : No space left on device
Here’s how I get rid of annoying error ‘no space left on device’ while restarting apache webserver on Debian Lenny
fuser -k -n tcp 80
Here’s how I get rid of annoying error ‘no space left on device’ while restarting apache webserver on Debian Lenny
fuser -k -n tcp 80
This is the fastest way to achieve a good url rewriting in Php, redirecting every non-existing file or directory to the index.php. The following htaccess also make chekcs to exclude automatically images,js,css from being redirected
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !^.*\.png [nc]
RewriteCond %{REQUEST_FILENAME} !^.*\.css [nc]
RewriteCond %{REQUEST_FILENAME} !^.*\.jpg [nc]
RewriteCond %{REQUEST_FILENAME} !^.*\.js [nc]
RewriteCond %{REQUEST_FILENAME} !^.*\.gif [nc]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]