I'm hoping this is the right place for this question.
I want to use RewriteRules for a website on DreamHost, but I'm having a great deal of trouble making them work.
I'm familiar with regular expressions but I've never really done RewriteRules before.
Here's the only one I've been able to get working:
RewriteRule /test.html /test2.html [L,QSA]
and when I go to domainname.com/test.html I do indeed get served up "test2.html" instead.
But of course, I want something more complex than that.
I was hoping to create a simple web app whereby a URL which looks like "domainname.com/ice/cream/" gets served up by "domainname.com/cgi/script.cgi?foo=ice&bar=cream" -- it must be possible, and I believe I can write a regular expression for it, but if I write just
RewriteRule /ice/cream/ /test.html
nothing happens when I go to /ice/cream/ except a 404. Where am I going wrong?
Thanks in advance,