0

I get an 500 .htacces error when I use this in my .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*/([a-zA-Z0-9_-]+)|([a-zA-Z0-9_-]+))$ ./profile.php?username=$1 [L]

I type this without any other lines. Whats the problem and solution? Please help.

Sumurai8
  • 19,483
  • 10
  • 67
  • 96
Kool_Kass
  • 3
  • 5
  • Your first reaction you should have when you get an internal server error is: What was logged in the Apache error log? Could you please do that, and edit the following information into your question: What url did you test with. What was the expected output. What was the error that was logged in the Apache error log? – Sumurai8 Nov 16 '14 at 09:45
  • I need it for viewing a users profile, when i add these tags at the beginning and end () the error disappears but it views the array and length and stuff like that. – Kool_Kass Nov 16 '14 at 09:52
  • What more do you need?? – Kool_Kass Nov 16 '14 at 09:57
  • possible duplicate of [How to enable mod\_rewrite for Apache 2.2](http://stackoverflow.com/questions/869092/how-to-enable-mod-rewrite-for-apache-2-2) – Sumurai8 Nov 16 '14 at 13:14

0 Answers0