Click to See Complete Forum and Search --> : help with a .htaccess file


supercain
03-03-2009, 02:31 AM
Hi,

i was using this .htaccess file in my old server and worked fine. But as i moved server, its returning a 500 error.

php_flag mbstring.encoding_translation "On"
php_flag session.use_trans_sid "On"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} !^DoCoMo/
RewriteCond %{HTTP_USER_AGENT} !^UP\.Browser/
RewriteCond %{HTTP_USER_AGENT} !^KDDI-
RewriteCond %{HTTP_USER_AGENT} !^J-PHONE/
RewriteCond %{HTTP_USER_AGENT} !^Vodafone/
RewriteCond %{HTTP_USER_AGENT} !^SoftBank/
RewriteCond %{HTTP_USER_AGENT} !^emobile/
RewriteRule ^(.*)$ http://www.vip.net/$1 [R,L]
</IfModule>

Is there any alternative code for this? my new server is not accepting it for some reason.

Thanks.

supercain
03-03-2009, 08:24 PM
Any answer please?

NXInteractif
03-04-2009, 01:54 AM
What are the exact details of the 500 error?
Different servers have different settings as far as allowing/not allowing rewrites, etc.

supercain
03-04-2009, 08:45 PM
There is no details, only this message

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@page.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

and the server is so sh!tty that there is no error log available.