redirecting/subdomain

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ahimsa
    Major General

    • Jan 2009
    • 2184

    redirecting/subdomain

    Hi everyone,
    I have a situation new to me :)
    I have an add-on domain (www.addon.net) - it is a personal site that I don't encourage general traffic to visit. I need to set up a promotional site for a short period of time & so do not want to purchase a new name. Question: is it possible to use my addon.net domain name & "temporarily" redirect traffic that enters www.addon.net to a subdomain of that site, ie the 'promotional' pages? The idea being that visitors to www.addon.net will only see the subdomain pages?

    In the back of my head I'm hearing "301 redirect"!! If this is the way to go, could someone point me to a simple tut. or explanation on how to set this up....

    I hope this makes enough sense to someone who can then help :)


    Many thanks in advance for any advice,

    david
    Never measure the height of the mountain you're climbing. At the summit, look back and see how small it really is!
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: redirecting/subdomain

    A 301 is a permanent redirect.
    In your case, it would be better if you used the normal meta redirect through the index page itself.

    Open the index page in BV, go in Page Properties, Misc, Redirect, Internal Webpage and type the full URL of the subdomain index page.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • ahimsa
      Major General

      • Jan 2009
      • 2184

      #3
      Re: redirecting/subdomain

      ....ok that's great! Thanks for that..........1 small thing: I tried it & it's fine EXCEPT that Firefox can block the redirect! On mine, for example, it comes up "Firefox prevented this page from being automatically redirected"!!!! Any clever little trick to get around this? As, if not, then it kinda defeats the purpose of what I'm trying to achieve, you know? :)
      Never measure the height of the mountain you're climbing. At the summit, look back and see how small it really is!

      Comment

      • navaldesign
        General & Forum Moderator

        • Oct 2005
        • 12080

        #4
        Re: redirecting/subdomain

        The only other easy solution is to use a PHP index page that will redirect to the subdomain.

        Opn Notepad and create a file with the following content;

        <?php
        header("Location: subdomainfolder/index.php");
        ?>

        Upload it in the main site folder (public_html) and DELETE the index.html file from the server (you can always republish it after the temporary redirect period)
        Navaldesign
        Logger Lite: Low Cost, Customizable, multifeatured Login script
        Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
        DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
        Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

        Comment

        • ahimsa
          Major General

          • Jan 2009
          • 2184

          #5
          Re: redirecting/subdomain

          ....Thanks a lot for your tips........really helpful as ausual :)
          After thinking it all through, for what I want & only for a relatively short time I could just as easily replace the index with a simple page with the message "If your browser does not automatically redirect, click here" and have a link to the subdomain index page? Then, as you say, I just republish the original when all is done with!

          (Sometimes the simplest ways are the most effective, yes?)
          Never measure the height of the mountain you're climbing. At the summit, look back and see how small it really is!

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            Re: redirecting/subdomain

            Sure!
            Navaldesign
            Logger Lite: Low Cost, Customizable, multifeatured Login script
            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

            Comment

            Working...
            X