i'm back, with more problems, and your help is greatly appreciated. here's the problem:
i was trying to set up a rss feed for my blog. i know there are probably scripts/programs that generate rss feeds, but since it's just an xml file, i thought i'd write a little script myself. however, on my blog, the url for each file would look something like this:
....../blog/entry.php?id=23&view=simple
so i put the following line in the xml file
<link>....../blog/entry.php?id=23&view=simple</link>
and the browser tells me that it's malformed. it works only if it's something like
<link>....../blog/entry.php?id=23</link>
but i need the 'view=simple' bit in the url, so my first question, then, is is there a way to have 'entry.php?id=23&view=simple' as a link in the xml file? i'm using rss version 2.0 by the way.
anyway, i looked a bit on the net and couldn't work out a solution, so i went to plan b. instead of
....../blog/entry.php?id=23&view=simple
i'll change the url to the following
....../blog/entry/23/simple/
and have .htaccess redirect me. this way i can put the link in the rss feed at least. so i went to the .htaccess file in my public_html dir, and added the following lines
RewriteEngine On
RewriteRule entry/(.+)/(.+)(/?)$ entry.php?id=$1&view=$2
however, it didn't work. so i created a directory public_html/blog/entry. then i created a new .htaccess file there, and put the same two lines in that file. it didn't work again. and the error says that 'The requested URL /blog/entry/17/simple/ was not found on this server.'
so what am i doing wrong? is there something wrong with the directive in the .htaccess file, or i should've put it somewhere else?
this seems implausible, but maybe servers has to be restarted for the change to take effect? on my linux at home i need to restart the web server if i change something in http.conf, but surely if the .htaccess is already there in the public_html dir there's no need to restart?
anyway, solution to just one problem would be sufficient. thanks for your help!