โค้ด เลือก
RewriteCond %{HTTP_HOST} ^122.155.xx.xxx/~username/$ [NC,OR]
RewriteRule ^(.+)$ http://xx.com/$1 [R=301,L]ลองอันนี้ดูนะครับ
แบบนี้เวลาคนเข้าจาก url อะไรก็ตามที่ขึ้นต้นด้วย 122.155.xx.xxx/~username/
จะถูกเปลี่ยนมาเป็น http://xx.com/
เช่น 122.155.xx.xxx/~username/content.html --> http://xx.com/content.html
ผมไม่ค่อยเป๊ะเรื่อง syntax เช็คดูอีกทีนะครับ


