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
https://forums.phpfreaks.com/topic/137676-mod_rewrite-on-internal-server-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.