mercy
mercy

Reputation: 45

.htaccess file set-up on ubuntu 12.10

as soon as i save these .htaccess file on my server i got a error 500 internal server error, any idea how can i resolve it. the other issue for some reason these .htaccess file works on the tutorial i was watching http://www.youtube.com/watch?feature=player_embedded&v=Aw28-krO7ZM#at=130

<IfModule mod_rewrite.c>
   RewriteEngine On

   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-l

   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
<IfModule>

Upvotes: 0

Views: 2104

Answers (1)

mkjasinski
mkjasinski

Reputation: 3088

First error:

Module mod_rewrite was not enabled in Apache. After you enable it - the error was gone and website start working.

To enable the module edit apache’s httpd.conf file and make sure this line is there uncommented:

LoadModule rewrite_module modules/mod_rewrite.so

after installation mod_rewrite on your system.

Second error:

Change last line of .htaccess file to:

</IfModule>

I hope I helped.

Upvotes: 1

Related Questions