|
#1
|
|||
|
|||
|
Redirects, DNS and WWW Oh My!
I'm looking for the right, best, correct way to setup DNS for today's websites - specifically the right way to handle www.domain.com versus domain.com.
I'll first start by saying I'm not technical or a server admin my trade, but I know enough to be dangerous. I know redirects should be a 301 permanent redirects in most cases. Recently I've noticed that many websites seem to be redirecting from their domain.com to their www.domain.com (example: target.com). The way we have historically done our DNS is to set up an A record for domain.com set to the appropriate IP address and then www.domain.com with a CNAME record pointed to domain.com. This way either one works. Feedback? |
|
#2
|
||||
|
||||
|
Re: Redirects, DNS and WWW Oh My!
I usually point every thing to www.domain.com and then redirect all other stuff to it - like domain.com, domain.com/index.extensions (htm, html, etc)
|
|
#3
|
|||
|
|||
|
Re: Redirects, DNS and WWW Oh My!
Quote:
|
|
#4
|
||||
|
||||
|
Re: Redirects, DNS and WWW Oh My!
Ok change the variables but place this in your .htaccess file
Quote:
If your server is capable of rewriting urls via mod_rewrite this turns the module on Quote:
Quote:
that includes yousite.com yoursite.com/page/page/page/product.php Ok next you need to redirect all urls that are yoursite.co.uk/index.php to yousite.co.uk this does that for you Quote:
That should do you for starters Jaza |
|
#5
|
||||
|
||||
|
Re: Redirects, DNS and WWW Oh My!
Are your DNS('s) set up properly?
Can you access your domain if you type it in the addres bar? Even if it is a blank page? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|