Prosto i zwięźle lubie takie konkrety.
OK to inaczej. Mam 14 domen i chcę aby 13 z nich kierowało do tej jednej.
Przy czym nie chcę aby podstrony były indeksowane dla tych 13 tylko dla tej jednej.
Czy uzyskam taki efekt przy tym kodzie?
Czy odindeksuje mi resztę domen z www. i bez www?
Jak długo to może trwać?
Rozumiem że podstrony zaindeksowane pod domeną xxx muszą zniknąć aby zaindeksować się pod domeną yyy?
Generalnie efekt pożądany to zaindeksowane podstrony dla jednej domeny!
Kod po poprawkach (wskazówki od pracownika SOTE)
KOD
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdfasdfi\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasfd\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdf\.eu$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdf\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdfa\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdf\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?kreatormarket\.com.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdfa\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?kreatormarket\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdfasfd\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdfasfd\.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?asdfasdfasdf\.pl$ [NC]
RewriteRule ^(.*)$ http://www.kreatormarket.pl/$1 [R=301,L]
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /
RewriteRule ^product/image/([0-9]+)/(.+)$ index.php?module=stProduct&action=showImage&folder=$1&image=$2 [L]
RewriteRule ^(st_frontend_[0-9a-f]+\.([^.]+)\.(min.css|min.js))$ /sfMinifyPlugin.php?f=/$1&e=$2 [L,NC]
# we skip all files with .something
# comment the following 3 lines to allow periods in routes
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"
<IfModule mod_headers.c>
<Files ~ "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2020 20:00:00 GMT"
</Files>
</IfModule>
<IfDefine sote>
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-fastphp5 .inc .php .php3 .php4 .php5 .phtml
</FilesMatch>
</IfDefine>