For a cms system i must have friendly URL option and turn on and config the mod_rewrite module. I have Debian 5 and DA newest version. Don't know if i have to enable this option because i think its enabled standard?
Also i have this code in the .htaccess but the mod-rewrite module doenst seems to be work. All links are dead. What can be wrong ?
Also i have this code in the .htaccess but the mod-rewrite module doenst seems to be work. All links are dead. What can be wrong ?
Code:
Options All -Indexes
ErrorDocument 404 /404.php
FileETag MTime Size
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^sitemap\.xml$ index.php [L]
RewriteRule ^(.*)(\.html|\.htm)$ index.php [L]
RewriteRule ^(.*)(\.rss|\.atom|\.txt)$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType text/css "access plus 1 months"
ExpiresByType application/x-javascript "access plus 1 months"
</IfModule>