Link to home
Create AccountLog in
Avatar of Ali Saad
Ali SaadFlag for Kuwait

asked on

Redirect URL Problem

Hello
i have a new domain from enom.com registrar , say the domain name is mywebsite.com "for explanation only " 
i want to redirect any visitor who types www.mywebsite.com OR mywebsite.com  to another url say "www.myotherwebsite.net"
I have made the settings as showing in the attached image
The probelm is
- When typing www.mywebsite.com  it SUCCEFULLY Redirect to www.myotherwebsite.net
BUT If type mywebsite.com  without "www."  it dosnt redirect
By the way the www.myotherwebsite.net is mine but from other registrar
Is there is any other setting should i set
 Please help


Redirect.jpg
Avatar of Dushyant Sharma
Dushyant Sharma
Flag of India image

you can try creating a CNAME record. keep hostname blank and under address type www.mywebsite.com

hope this helps
Avatar of Kent Keller
Or just just use the one below with the * for all others with a URL redirect to www.myotherwebsite.net also. Basically identical to the www line above but on the * line.
Hi,
just add an new alias as * in cname section it would work.
even in .htaccess file u can define it as.

AddType text/x-component .htc
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mywebsite\.com [NC]
RewriteRule ^(.*)$ http://www.mymotherwebsite.com/$1 [R=301,L]

but * would resolve ur all issue.
u can just edit www to *
Avatar of Ali Saad

ASKER

Hi ddsh79:
I did what you saie but ther's errors comes up
"Either HostName or Address is blank."
so i cant save
ASKER CERTIFIED SOLUTION
Avatar of Insoftservice inso
Insoftservice inso
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
you can also try A record as *

host name                   Address
domain.com                address
*.domain.com             address

You have to change the @ record. @ means the current scope of the DNS configuration, which is the domain name.

It should be the same (or similar) as the www entry.

Please keep in mind that this redirecting is NOT a DNS thing, it happens at the HTTP level. The DNS provider probably also provides a redirecting service.
Any luck?