<?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>Re: Regular expression for htaccess URL redirect</title><link>http://regexadvice.com/forums/thread/86184.aspx</link><pubDate>Fri, 17 Aug 2012 07:02:41 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86184</guid><dc:creator>g1smd</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/86184.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86184</wfw:commentRss><description>&lt;p&gt;Redirect doesn&amp;#39;t work with Regular Expressions.&amp;nbsp; Use RewriteRule.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;RewriteRule&amp;nbsp; ^data/january/([a-z0-9]+)\.([a-z]+)$ &amp;nbsp;&amp;nbsp; http://www.example.com/sample&amp;nbsp; [R=301,L,NC]&lt;/p&gt;&lt;p&gt;&amp;nbsp;End anchor the pattern.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Escape the literal period.&lt;/p&gt;&lt;p&gt;Do not escape slashes in htaccess. Escaping slashes is only needed in javascript. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Replace &amp;quot;a-zA-Z&amp;quot; with &amp;quot;a-z&amp;quot; and [NC] flag to parse 33% quicker.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Use example.com for example code.&lt;/p&gt;&lt;p&gt;The * allowed an empty element. Replace with a + sign. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Regular expression for htaccess URL redirect</title><link>http://regexadvice.com/forums/thread/80981.aspx</link><pubDate>Tue, 19 Apr 2011 20:25:49 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:80981</guid><dc:creator>innovator48</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/80981.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=80981</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;I am trying to redirect all files in a particular directory in my web server.&lt;br /&gt;&lt;br /&gt;I am trying regular expressions such as &lt;br /&gt;Redirect /data/january\/([a-zA-Z0-9]*).([a-zA-Z]*)&amp;nbsp; http://www.mysite.com/sample &lt;br /&gt;&lt;br /&gt;The expression /([a-zA-Z0-9]*).([a-zA-Z]*) is trying to find expressions such as &amp;quot;dat35262.pdf&amp;quot;.&lt;br /&gt;&lt;br /&gt;But its not working. Can you help me out?&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;Ashish&lt;br /&gt;</description></item></channel></rss>