Jump to content
xt:Commerce Community Forum

Mode Rewrite bei 1und1


Recommended Posts

hat jemand erfahrung mit Mode Rewrite bei 1und1

wenn ja könnt ihr mir sagen was genau an welche stelle der .htaccess eingefügt werden muss damit dieses funktioniert.

bei mir sieht es zu zeit noch so aus

AddType x-mapp-php5 .php

AddHandler x-mapp-php5 .php

# RewriteEngine on

# RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

DirectoryIndex index.php

<IfModule mod_rewrite.c>

SetEnv HTTP_MOD_REWRITE On

RewriteEngine on

RewriteCond %{REQUEST_URI} !^/media/

RewriteCond %{REQUEST_URI} !^/extAdmin/

RewriteCond %{REQUEST_URI} !^/skin/

RewriteCond %{REQUEST_URI} !^/js/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

</IfModule>

<IfModule mod_expires.c>

ExpiresActive On

ExpiresDefault "access plus 1 seconds"

ExpiresByType image/x-icon "access plus 2692000 seconds"

ExpiresByType image/jpeg "access plus 2692000 seconds"

ExpiresByType image/png "access plus 2692000 seconds"

ExpiresByType image/gif "access plus 2692000 seconds"

ExpiresByType application/x-shockwave-flash "access plus 2692000 seconds"

ExpiresByType text/css "access plus 2692000 seconds"

ExpiresByType text/javascript "access plus 2692000 seconds"

ExpiresByType application/x-javascript "access plus 2692000 seconds"

</IfModule>

<IfModule mod_headers.c>

<FilesMatch "\\.(ico|jpe?g|png|gif|swf|css|js)$">

Header set Cache-Control "max-age=2692000, public"

</FilesMatch>

Header unset ETag

Header unset Last-Modified

</IfModule>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...