Error in .htaccess file on Windows server running Helicon Ape

I am using an .htaccess file with Helicon Ape on a Windows server to do URL redirects. I have the following code in .htaccess which was on an older Linux server and was working:

RewriteEngine On

Redirect /berks-ham-steak-parmesan/

Open in new window

However, on the Windows server with Helicon Ape, it does not work, and I see this message in the logs:

[2018-02-27 19:46:18.883] [ConfigLoader:85] (error) [/_ape_start_developer_session] d:\\wwwroot\.htaccess(28): Invalid command 'Redirect /berks-ham-steak-parmesan/' on line 28, perhaps misspelled or defined by a module not included in the server configuration

Open in new window

Is there some other way I should be handling Redirect? Is that no longer a valid command, or is it an incompatibility with Helicon Ape?

Thank you.
Brad BansnerWeb DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dr. KlahnPrincipal Software EngineerCommented:
For better compatibility with common mod_rewrite usage, this could read:

RewriteCond {REQUEST_URI} ^/berks-ham-steak-parmesan/
RewriteRule .*

Open in new window

If this redirection is not going to a different server, the RewriteRule can be simpler:

RewriteCond {REQUEST_URI} ^/berks-ham-steak-parmesan/
RewriteRule .* /recipe-ham/?id=38

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brad BansnerWeb DeveloperAuthor Commented:
Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.