<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexadvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Construction Advice</title><link>http://regexadvice.com/forums/68/ShowForum.aspx</link><description>&lt;P&gt;Find help building expressions to suit your needs. Consult the &lt;A href="http://regexlib.com"&gt;Regular Expression Library&lt;/A&gt; to find many pre-built expressions, and add your own once you've solved your construction problem in our forum.&lt;/P&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>rewrite wordpress search url</title><link>http://regexadvice.com/forums/thread/82009.aspx</link><pubDate>Wed, 11 May 2011 07:25:14 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:82009</guid><dc:creator>misterb</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/82009.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=82009</wfw:commentRss><description>&amp;nbsp;I need a regex to rewrite  with htaccess the permalink of a wordpress search query. This query is built this ways : http://example.com/&lt;b&gt;?s=queryterms1+queryterms2&lt;/b&gt; and can contains upper and lower case, and digits and any special character. &lt;p&gt;&amp;nbsp;I need this query to be rewritten into&amp;nbsp; http://example.com/&lt;b&gt;search/queryterms1+queryterms2.html&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I tried a few but think that the &amp;quot;?&amp;quot; got me an error &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>