Title: Regular expression
Last modified: September 1, 2016

---

# Regular expression

 *  [kevingobert](https://wordpress.org/support/users/kevingobert/)
 * (@kevingobert)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/regular-expression-2/)
 * I imported a .htaccess file that works and tested [http://htaccess.mwl.be/](http://htaccess.mwl.be/).
   
   The regular expression has been created but the redirection isn’t done.
 * Here is my .htaccess :
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^news-(.*?)\.html$ /$1 [L,R=301]
       </IfModule>
       ```
   
 * [https://www.dropbox.com/s/66e2xhh8cl84i8j/Capture%20d%27%C3%A9cran%202016-06-30%2013.13.01.png?dl=0](https://www.dropbox.com/s/66e2xhh8cl84i8j/Capture%20d%27%C3%A9cran%202016-06-30%2013.13.01.png?dl=0)
 * Thank you
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

The topic ‘Regular expression’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kevingobert](https://wordpress.org/support/users/kevingobert/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/regular-expression-2/)
 * Status: not resolved