Results 1 to 3 of 3

Thread: Redirecting domains via DNS help

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2007
    Posts
    6

    Default Redirecting domains via DNS help

    Hi All,

    Is there an easy way to redirect a non fully qualified address at the domain level?

    Specifically i would like to redirect <domain> to w w w .<domain>. (sorry for the spaces - but otherwise it would not let me post)

    The reason is that flash in particular treats the two as separate security domains, and while you can disable the security - i would rather have it redirect anything that it pointing to the root domains.

    Other domains such as "ftp", "mail", "mysub", etc should not be affected.

    Thanks for any suggestions.

  2. #2
    Forum Administrator Power Poster Lyle@Spry's Avatar
    Join Date
    May 2005
    Posts
    455

    Default

    Hello,

    This isn't something that can be done with DNS alone, but if both www.example.com and example.com point to the same web space on your server, you can use ModRewrite in an .htaccess file to accomplish this.

    See Redirecting the Homepage using mod_rewrite for an example.

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2007
    Posts
    6

    Default Thanks

    I'll go ahead and give this a try. I looks like it will do what i need since it is handled by the server independent of the HTML on the site.

    Thanks again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •