Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    352

    Question Redirecting wildcard subdomains and TLDs

    Greetings,

    Can someone please help me with a rewrite rule in .htaccess that would redirect all subdomains and TLDs of a domain name to a specific URL?

    For example, I'd like to permanently redirect all requests for *.domain1.* to http://www.domain2.com/index.html

    Thanks in advance!

  2. Its a simple

    Just add one line in to .htaccess file like

    Redirect 301 *.domain1.* http://www.domain2.com/index.html

    Let me know if you have any confusion

Similar Threads

  1. Wildcard DNS subdomains working, but existing subdomains not...
    By ThatScriptGuy in forum Hosting Security and Technology
    Replies: 10
    Last Post: 04-23-2010, 10:15 PM
  2. Subdomains vs. TLDs
    By vineld in forum Domain Names
    Replies: 4
    Last Post: 01-03-2008, 09:11 AM
  3. eNom releases new TLDs (subdomains) [Merged]
    By Bashar in forum Domain Names
    Replies: 45
    Last Post: 04-28-2004, 08:02 PM
  4. Redirecting subdomains
    By GRIZZLY_NL in forum Hosting Security and Technology
    Replies: 2
    Last Post: 04-18-2003, 09:59 PM
  5. Redirecting subdomains
    By GRIZZLY_NL in forum Programming Discussion
    Replies: 1
    Last Post: 04-15-2003, 07:42 PM

Posting Permissions

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