Skip to content

Instantly share code, notes, and snippets.

@atuttle
Last active August 29, 2015 13:55
Show Gist options
  • Save atuttle/8738380 to your computer and use it in GitHub Desktop.
Save atuttle/8738380 to your computer and use it in GitHub Desktop.
RewriteLog C:\Inetpub\ATuttle\meta_files\fusiongrokker.com\iirfLog.out
RewriteLogLevel 0
RewriteFilterPriority HIGH
###### force removal of www. prefix on all requests
RewriteCond %{HTTP_HOST} www.fusiongrokker.com(.*) [I]
RewriteRule ^/(.*) http://fusiongrokker.com/$1 [I,R=301,U,L]
###### fix old links
# individual project pages
RewriteRule ^/page.cfm/projects/burnt-mango http://fusiongrokker.com/page/projects [I,R=301,U,L]
RewriteRule ^/page/projects/smarttype-mango-blog-plugin http://fusiongrokker.com/page/projects [I,R=301,U,L]
RewriteRule ^/page/projects/related-entries-mango-plugin http://fusiongrokker.com/page/projects [I,R=301,U,L]
RewriteRule ^/page/projects/log-viewer-for-mango-blog http://fusiongrokker.com/page/projects [I,R=301,U,L]
###### Mango Blog stuff
#redirect old url's to their new fancy url's
#RewriteRule ^/(post|page|archives|author).cfm/(.*)$ /$1/$2 [R=301,I,U]
RewriteRule ^/post.cfm/(.*)$ /post/$1 [R=301,I,U]
RewriteRule ^/page.cfm/(.*)$ /page/$1 [R=301,I,U]
RewriteRule ^/archives.cfm/(.*)$ /archives/$1 [R=301,I,U]
RewriteRule ^/author.cfm/(.*)$ /author/$1 [R=301,I,U]
#standard mango rewrites
#RewriteRule ^/(post|page|archives|author)/(.*)$ /$1.cfm/$2 [I,U,L]
RewriteRule ^/post/(.*)$ /post.cfm/$1 [I,U,L]
RewriteRule ^/page/(.*)$ /page.cfm/$1 [I,U,L]
RewriteRule ^/tagged/(.*)$ /archives/category/$1 [I,U]
RewriteRule ^/archives/(.*)$ /archives.cfm/$1 [I,U,L]
RewriteRule ^/author/(.*)$ /author.cfm/$1 [I,U,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment