Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default 301 Redirect using windows

    I have been trying to set up a 301 redirect, here's the kicker, I'm using windows! I have found several places that give me the code, but don't tell me where to put it. I only want to change the redirect so mommyandbabyessentials.com redirects to www.mommyandbabyessentials.com

    This is the code I have found, can anyone tell me what file to put it in and where to put it? I tried tpl_main_page.php and it worked but I then got several errors.

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.com" );
    ?>

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: 301 Redirect using windows

    On Linux this would be in the .htaccess file but I do not believe that this is allowed on a win server??

    You might Google mod_rewrite and win servers for a possible solution
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. 301 Redirect using PHP
    By tpiccirillo in forum General Questions
    Replies: 4
    Last Post: 3 Mar 2012, 12:01 AM
  2. How to redirect a pseudo-static page using a 301 redirect ?
    By anahong in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2010, 02:37 PM
  3. Using 301 Redirect with SSU
    By NBordeau in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 1 May 2010, 11:05 PM
  4. 301 Redirect
    By camslozano in forum General Questions
    Replies: 1
    Last Post: 3 Oct 2009, 10:54 PM
  5. Replies: 14
    Last Post: 2 Jul 2008, 03:40 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
  •  
disjunctive-egg