mod_rewirte and get_browser() in wamp
Posted by: recycle_bin (84.47.245.---)
Date: May 19, 2008 07:46AM

Hi guys,
I have some crazy problems on mod_rewrite and get_browser() function on wamp.

First my rules on .htaccess not affected on urls (get variables not parsed).

Here is my .htaccess file:

------------------

Options -Indexes

RewriteEngine On

RewriteRule ^foo.html$ /bar.php?id=zzz [L]

------------------

foo.html rewrite to bar.php, but $_GET variable still empty or sometimes I have 404 (Not Found) Error on bar.php (that’s crazy me!)

After I upgrade from wamp5_1.7.1 to wampserver 2.0c, plus rewrite troubles, I have a problem with get_browser() and browscap.ini that when I called get_browser() function, php generate some errors (in log php_error.log) like:

PHP Warning: Cannot open 'c:/wamp/extra/browscap.ini' for reading in Unknown on line 0

So I tried out everything that I think possible to make troubles:

1. rewrite_module enabled
2. browscap.ini are available in path and latest version
3. php.ini was edited from system try icon (wamp using some php.ini files)
4. extra/browscap.ini or c:/wamp/extra/browscap.ini with forward slash or backslashes not worked.


Some one can help?



Edited 1 time(s). Last edit at 05/19/2008 07:52AM by recycle_bin.

Options: ReplyQuote
Re: mod_rewirte and get_browser() in wamp
Posted by: Jamesking55 (---.range81-152.btcentralplus.com)
Date: June 07, 2008 06:38PM

Did you enable Apache Rewrite Module?

Options: ReplyQuote


Sorry, only registered users may post in this forum.