RedirectMatch with wildcards
RedirectMatch 301 ^/wp-content/uploads/p/(.*)$ http://z.site.com/p/$1
RedirectMatch 301 ^/(.*)apache-htaccess.html/2/(.*)$ http://www.site.com/htaccess/using-http-headers-with-htaccess.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/3/(.*)$ http://www.site.com/htaccess/php-htaccess-tips-and-tricks.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/4/(.*)$ http://www.site.com/htaccess/seo-search-engine-friendly-redirects-without-mod_rewrite.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/5/(.*)$ http://www.site.com/htaccess/mod_rewrite-tips-and-tricks.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/6/(.*)$ http://www.site.com/htaccess/speed-up-your-site-with-caching-and-cache-control.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/7/(.*)$ http://www.site.com/htaccess/apache-authentication-in-htaccess.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/8/(.*)$ http://www.site.com/htaccess/security-with-apache-htaccess.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/9/(.*)$ http://www.site.com/htaccess/ssl-example-usage-in-htaccess.html$2
RedirectMatch 301 ^/(.*)apache-htaccess.html/10/#htaccess-glossary http://www.site.com/htaccess/htaccess-for-webmasters.html#htaccess-glossary
RedirectMatch 301 ^/(.*)apache-htaccess.html/10/(.*)$ http://www.site.com/htaccess/apache-variable-fun-in-htaccess.html$2
RedirectMatch 301 ^/(.*)\.htm$ http://www.site.com/$1.html
RedirectMatch 301 ^/200([0-9])/([^01])(.*)$ http://www.site.com/$2$3
RedirectMatch 301 ^/(.*)/htaccesselite-ultimate-htaccess-article.html(.*) http://www.site.com/htaccess/apache-htaccess.html
RedirectMatch 301 ^/(.*)\.html/1/(.*) http://www.site.com/$1.html$2
RedirectMatch 301 ^/category/(.+)$ http://www.site.com/$1
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.


Comments
No comments yet.
Leave a comment