Editor pairs Posted October 31, 2014 Editor Share Posted October 31, 2014 Merhaba arkadaşlar. Webmaster işlerinden anlayan arkadaşlardan bir ricam olacaktı. htacces ile bir domaini başka domaine yönlendirmek istiyorum fakat gözükecek olan domain ilk domain olacak. Yani a.com u b.com a yönlendireceğim. Fakat adres çubuğunda a.com gözüksün istiyorum. bir host ta iki domain tutmak istiyorum. Quote Link to comment Share on other sites More sharing options...
yokum Posted October 31, 2014 Share Posted October 31, 2014 RewriteCond %{HTTP_HOST} ^a\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.a\.com$ RewriteRule ^/?$ "\/b\.com" [R=301,L] deneyebilirsin. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted October 31, 2014 Author Editor Share Posted October 31, 2014 Dediğiniz kodu denedim önlendirmede sorun yok ama. Adres çubugunda yönlendiği adresin ismi geçiyor.yine. Yani a.com. Quote Link to comment Share on other sites More sharing options...
yokum Posted October 31, 2014 Share Posted October 31, 2014 zaten soruda onu istemişsin. sorun yanlış a.com u b.com a yönlendireceğim. Fakat adres çubuğunda a.com gözüksün istiyorum. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted October 31, 2014 Author Editor Share Posted October 31, 2014 Tamam doğru yazmışım :D. senin verdiğin kod ile yönlendiriyorum evet ama adres çubugunda b.com çıkıyor :D Quote Link to comment Share on other sites More sharing options...
yokum Posted October 31, 2014 Share Posted October 31, 2014 O zaman "Addon Domain" yapacaksın. "Document Root" kısmınıda b sitesinin root klasörüne ayarla "/public_html/b.com" htaccess ile nasıl yapılır bilmiyorum. Yaptığım değişiklik htaccess dosyasını değiştirmemiş. Parked domain olunca htaccess dosyasını değiştirerek yapıyor. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted November 1, 2014 Share Posted November 1, 2014 RewriteEngine On RewriteCond %{HTTP_HOST} ^a.com RewriteRule ^(.*) http://b.com [P] veya şöyle dene pairs RewriteEngine On RewriteCond %{HTTP_HOST} ^a.com RewriteRule ^(.*) http://b.com [R=301,L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.