Forum Moderators: phranque

Message Too Old, No Replies

where does this rewriting come from?

         

koen

3:53 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



I'm trying to rewrite a url like [localhost...] to [localhost...]

For this example I only need something like:

RewriteEngine On
RewriteBase /site1/forum/
RewriteRule ^list/([^/]+)$ list.php?$1

in my htaccess file. However, after clicking the [localhost...] link, it goes to [localhost...] I know it worked a couple months ago on windows with apache 1.3 (I believe) but now that I'm on ubuntu with apache 2 its rewriting doesn't make any sense.

crevier

6:49 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



If it's just not making sense, the first thing I would do is turn on logging. The log usually shows a lot about what it's doing. Something like this:

RewriteLog /some/path/here/rewrite_log
RewriteLogLevel 9

Just be sure you realize that a loglevel of 9 puts out lots of stuff in the file. Therefore, if you're working on a very busy site, I recommend turning it on, visiting the URL, then turn it off immediately. Then look at the log.