How to redirect photo.tale365.com to flickr album

Paid half a day to investigate the redirection problem, even the staff of IXWebHost said there is no way. Finally, made it work:

1. Make sure alias and sub-domains related to photo.tale365.com are cleared. To avoid the confusion of different effects.

2. Make sure A record in DNS configuration pointed photo.tale365.com to the correct IP address. So that this URL can direct to the website and reach .htaccess.

3. Edit .htaccess and added below lines

RewriteCond %{HTTP_HOST} ^photo.*\.tale365\.com$ [nocase]
RewriteRule ^(.*)$ http://www.flickr.com/photos/librazh/$1 [redirect=301,last]

It means if the URL starts with “http://”, the rest part starts from “photo” and ends with “tale365.com” regardless the cases, then append everything to the URL of flickr album where the “$1” placed.

4. Wait for DNS to propagate the changes.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Back to Top