1
votes

I have .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} .*Chrome.* [OR]
RewriteCond %{HTTP_USER_AGENT} .*Safari.* [OR]
RewriteCond %{HTTP_USER_AGENT} .*Netscape Navigator.*
RewriteRule .* /igra/ [L,R=301]

It should show to user for those three web browsers (chrome, safari,netscape) web pages locate
in golder /igra/ , but it says 500 error like below:

Internal Server Error Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Any help please...

1

1 Answers

0
votes

You're getting 500 due to presence of a space in Netscape Navigator

Try this more compact rule instead:

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} "(Chrome|Safari|Netscape Navigator)" [NC]
RewriteRule ^((?!igra/).*)$ /igra/$1 [L,R=301,NC]