Title: Apache mod_rewrite code work in windows ISAPI?
Last modified: August 30, 2016

---

# Apache mod_rewrite code work in windows ISAPI?

 *  Resolved [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/apache-mod_rewrite-code-work-in-windows-isapi/)
 * I need to change the permalink structure from
    /%year%/%monthnum%/%day%/%postname%/
 * to just %postname%
 * But I need to make sure old links out on the internet are redirected. I found
   on yoast.com this tool [https://yoast.com/research/permalink-helper.php](https://yoast.com/research/permalink-helper.php)
   and used it to determine I would need to add this to my .htaccess file after 
   making the permalink change
 * _`RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(?!page/)(.+)$ http://
   www.websitedomain.com/$4`_
 * However, my website runs on a windows server, not Apache. As such, my rewrite
   rules are in ISAPI, not Apache mod_rewrite, hence I have no .htaccess file.
 * My question is, will this rewrite rule work in ISAPI? Or would I need to alter
   some of the variables? Can anyone help me figure out what to put in the ISAPI
   rewrite rule to accomplish this same result?
 * [https://wordpress.org/plugins/wordpress-seo/](https://wordpress.org/plugins/wordpress-seo/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/apache-mod_rewrite-code-work-in-windows-isapi/#post-6841833)
 * For those interested, here is the correct line of code
 * `RedirectRule ^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(?!page/)(.+)$ http://yourdomain.
   com/$4 [I,R=301]`

Viewing 1 replies (of 1 total)

The topic ‘Apache mod_rewrite code work in windows ISAPI?’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [isapi](https://wordpress.org/support/topic-tag/isapi/)
 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 1 reply
 * 1 participant
 * Last reply from: [acann](https://wordpress.org/support/users/acann/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/apache-mod_rewrite-code-work-in-windows-isapi/#post-6841833)
 * Status: resolved