I'm placing my rules in .htaccess file.
Can you explain me please where I have to put these lines:
RewriteEngine On
RewriteLog /path/to/log/file
RewriteLogLevel 9
RewriteRule games_details/^([0-9]+)$ games_details.php?game_id=$1
When I put it in .htaccess I get Internal Server Error.
Thanks a lot for helping me
Steve Bink
That's probably because you don't have a path to '/path/to/log/file'. Replace that with the path to your log file. Putting the lines into an .htaccess file is fine as long as your server is allowing directives in those files.
KukiPei
ASKER
I have replaced it and It doesn't work. In apache error file I get this message:[Thu May 31 11:27:26 2007] [alert] [client 127.0.0.1] D:/Web/LD/.htaccess: RewriteLog not allowed here
That's a pretty simple Rewrite you're trying to do. Are you sure that mod_rewrite is available in your Apache build?
Steve Bink
My apologies. The RewriteLog and RewriteLogLevel belong in the vhost definition, or in the main server config. It is a server- or site-wide configuration item.
In your main server config:
RewriteLog /path/to/log/file
RewriteLogLevel 9
In your .htaccess file:
RewriteEngine On
RewriteRule games_details/^([0-9]+)$ games_details.php?game_id=$1
Can you post the log? You don't need to post the whole thing, just the final result of the main page. The last 2-3 lines of your previous log is an example of the section I'm looking for.
I get the same result
I am getting to a correct page: games_details.php, but I don't get sent parameter value (game_id)
Thanks anyway