16
Mods & Plugins (Requests & Discussions) / Re: Kategorieseite: Werbeblock nach X Bildern einblenden?
« on: November 27, 2011, 06:15:50 PM »
Perfekt! Ich danke dir!!
4images code on GitHub Click here to visit GitHub.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ErrorDocument 404 /404.html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^XXXXXX\.de$ [NC]
RewriteRule ^(.*)$ http://www.XXXXXX.de/$1 [L,R=301]
#RewriteBase /is/htdocs/XXXXXX
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}
RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}
RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.([0-9]+)\.htm$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.htm$ categories.php?cat_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.htm$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}
RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}
RewriteCond %{REQUEST_URI} index\.php$
RewriteCond %{QUERY_STRING} ^((.+)&)?template=([^&]+)&*$ [OR]
RewriteCond %{QUERY_STRING} ^((.+)&)?template=([^&]+)(&.+)$
RewriteRule .* http://www.XXXXXX.de/%3.htm?%2%4 [R=301,L]
RewriteRule ^sitemap.xml$ google.php
add in your .htaccess:Code: [Select]RewriteRule ^somepage.html$ index.php?template=somepage [NC,L]
I think if he has installed mod SEO friendly url he should have line like thisCode: [Select]RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}
already in his .htaccess file but maybe I'm wrong.
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}
Redirect permanent /index.php?template=somepage http://www.XXXX.com/somepage.htm