.htaccess 301 redirect problem

Posted on 2012-09-02
Last Modified: 2012-09-02
hi, I've had help with this before so I based my new redirect off the scripts from that session. This is a different site but similar setup. Here's the script I'm having a problem with-  

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^Sulzerproducts\.html$ [R=301]

I'm deleting-

new page will be-

Thanks in advance.

Question by:ScottRAnderson1
    LVL 5

    Expert Comment

    Have you tried just:

    Redirect 301 /Sulzerproducts.html
    LVL 16

    Expert Comment

    You may do this with mod_rewrite like this:

    RewriteEngine On
    RewriteRule ^Sulzerproducts.html$ [R=301,L]

    Open in new window


    Author Comment

    Thanks. I put it into the .htaccess file and the button still went to the old page. Do I need to delete the old page to make this work? I didn't on the other site I did this with.

    Author Comment

    hankknight - This one had the same result.
    LVL 16

    Accepted Solution

    ScottRAnderson1, I tested the mod_rewrite code that I posted and it does indeed work.

    The problem is that .htaccess are specifically for the Apache HTTPD Webserver and NOT for IIS.

    The "" website is powered by IIS version 7, NOT by Apache!

    There is an IIS module called "Helicon APE" that can be used to make IIS honor .htaccess directives:

    But Helicon APE is not installed on your website.

    This may help you:

    Otherwise, consider adding this JavaScript inside the <head> area of the  "Sulzerproducts.html" page: (Not a true 301 redirect)
    <script type="text/javascript">

    Open in new window


    Author Comment

    Thanks for the info. I will forward to my client and they can decide how to proceed on the Helicon Ape item. It may not be worth the hassle but I'll see. We had one page that was going to be deleted so I wanted to keep google from showing any dead links. I'll use the above script and go from there. Thanks. Scott

    Author Closing Comment

    Thorough explanation and guidance to a solution.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure ( It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
    Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
    The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now