V
V
Vadim9972014-10-02 21:43:42
PHP
Vadim997, 2014-10-02 21:43:42

How to fix 500 Internal Server Error?

Can't fix Internal Server Error. Created a .htaccess file and added RewriteEngine On to it. Saved, I see an Internal Server Error. I am using wamp. and the error in the error.log file looks like this:
[core:alert] [pid 11836:tid 796] [client 127.0.0.1:56444] C:/wamp/www/mysite/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Chistyakov, 2014-10-02
@Vadim997

You need to enable mod_rewrite in the config.
Under Linux it looks like

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
in Apache config.
As it will be under Windows - well, apparently the path to the module will change.

P
Puma Thailand, 2014-10-02
@opium

Install the mod_rewrite module
and after that try to use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question