Microsoft azure – WordPress hosting tuning

How to configure rewrite rules:

It’s necessary to connect via FTP to azure VM and update ftp://host/site/wwwroot/web.config file.

1
2
3
4
5
6
7
8
<rewrite>
            <rules>
                <rule name="Rewrite tcS3_media">
                    <match url="^tcS3_media/(.*)" />
                    <action type="Redirect" url="http://downloads.vodnici.net/{R:1}" appendQueryString="false" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>

How to migrate other blogs to WordPress on Azure

 Mass delete all images from media library

  • install SQL Executioner
  • run DELETE FROM `wp_posts` WHERE `post_type` = “attachment”

Leave a Reply

Your email address will not be published. Required fields are marked *