Sitem.com - En iyi Sitem bilgi ve alim kaynaklar. Bu alan adi satilik. olan subdomainimdeki http://xxx.sitem.com/aaa.rar dosyası silinmis olsa ve ben .htaccess dosyasini(anasayfamdaki) nasil editlersem yaklaşık 60 adet olan subdomainimdeki bu hata (404) iletilerini Sitem.com - En iyi Sitem bilgi ve alim kaynaklar. Bu alan adi satilik. anasayfama yönlendirebilirim ..
Not:sadece .htaccess dosyasi ile yapicam ve 400-401-402-403 ve 404 iletilerinide ayni anda yonlendirebilirsem tabi link hatalarından korunmus olurum diye dusunuyorum..Ayrıca editleyecek olacagim sadece 1 tek .htaccess dosyası olmalı o da anasayfamdaki olacak .Yoksa 60 tane subdomainimde tek tek ugrasmak istemiyorum.
Options +FollowSymLinks
Options +SymlinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.website.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.website.com$
RewriteRule ^(.*)$ http://www.website.com/~subdomain/ [R=301,L]
bu kodu denedim ancak basarılı olamadım.Yardımcı olabilirseniz cok mutlu olurum.
.htaaccess ile subdomain yönlendirme
2
●455
- 16-03-2009, 20:25:38xxx.websitesi.com iken dosyalar silinmisse yada yoksa direk
http://websitesi.com 'a yonlendirecem ..Dedigim gibi 50-60 adet subdomain ile tek tek ugrasmak da istemiyorum ..