Jump to content

mod_rewrite on "Internal Server Error"


bordr415

Recommended Posts

Ok, I've been searching endless through google and yahoo. Figured you guys have it figured out so came here for some help.

 

To make a long story short every time I enter "RewriteEngine On" into .htaccess I get an "Internal Server Error".

 

error.log shows:

Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

or in my other tests:

Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration

 

the real kicker is my httpd.conf:

LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule rewrite_module modules/mod_rewrite.so

LoadModule setenvif_module modules/mod_setenvif.so

 

I have tried every example of htaccess file I can find from simple to complex and none of them work when using rewrite commands. I am semi-new to php have used asp for some time but have started to transition towards php for the flexibility of it. My pages only show Internal Server Error when I have anything related to Rewrite in the htaccess. What am I doing wrong or what setting needs to be changed?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.