Page 1 of 1

mod_rewrite help

Posted: Tue Aug 01, 2006 11:53 am
by neophyte
Here's my rewrite:

Code: Select all

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule  %{QUERY_STRING} ^m=07&y=06&entry=entry060731-083034$ http://somesite.com/someurl
</IfModule>
I'm trying to rewrite a URL with the querystring above (http://somefirstsite.com/directory/index.php?:query string above:)to an external site. I can't seem to get this straight. What am I doing wrong.

Thanks

Posted: Tue Aug 01, 2006 12:11 pm
by RobertGonzalez
I think you need a redirect flag. Have you looked at the mod-rewite cheat sheet in the Apache, IIS and Servers forum?

Posted: Tue Aug 01, 2006 12:55 pm
by neophyte
Thanks for the tip Everah!