WordPress: Upload Blocked File Extensions Without a Plugin

This is not for a novice, you should have a little experience in PHP and know what the .htaccess file does. If you are new and want to edit these files make sure to create a backup file in case you bring down your WordPress site.

It took me an hour to figure this out, I do not like to overload WordPress with plugins for things I can do myself.

To many plugins can slow your system, open security holes and add external links to places you do not want your visitors to visit. Hopefully you found my post before wasting an hour of your time to come to the same solution.

I recently wanted to share additional files beside the basic extensions that WordPress allows you to use, i.e.  doc, jpg, mpg… I tried editing my .htacess file a few time with no results. Then I found a post that referenced the “wp-includes/funtions.php”. From the functions.php I made 2 changes in the same file.

  1. ,  'vsd' ),WordPress Funtions.php file


  1.            'vsd' => 'application/msvisio',functions.php

That is all I had to do to upload visio files with the “vsd” extension.

If it does not work for you, try adding access through the root .htaccess file as well.

# additional mimetypes
    AddType application/visio .vsd
    AddType application/x-visio .vsd
    AddType application/vnd.visio .vsd
    AddType application/visio.drawing .vsd
    AddType application/vsd .vsd
    AddType application/x-vsd .vsd
    AddType image/x-vsd .vsd

Good luck,

Adam M. Erickson

404 Webpage Fix for WordPress and Host Gator

404If you are getting this error, use this fix but make sure to shut off any WP applications that may be causing it! Not to go into specific details cause it is a pain in the neck but certain applications that can-rewrite urls for different browsing experiences are really messing up within WP.  Selectively de-activate apps and wait to see if it works.

I cannot remember the name of the app that was doing it  or I would tell you.

This is a quick fix i found that worked from yongee.hubpages.com and just wanted to make sure that the information gets spread around and to acknowledge that it does work.

Modify your .htaccess file, or rename it .htaccessOLD and start from scratch with a new .htaccess file.

    # BEGIN WordPress

    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="no" center_content="no" min_height="none"][L]

    # END 

   ## This kept giving me 404 ERRORS with WORDPRESS and HOSTGATOR GRRRRRRR ###
   ##WordPressRewriteEngine On
   ##RewriteCond %{HTTP:X-WAP-PROFILE} !^$ [OR]
   ##RewriteCond %{HTTP_ACCEPT} application/vnd.wap.xhtml\+xml [NC,OR]
   ##RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml [NC]

This has only happened for me with Host Gator. Nothing wrong with HG, they have the best support I have worked with.[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]