htaccess editing
-
I have amended the code in my WordPress theme to allow upload of ePub and mobi files. So far so good. Unfortunately, Mac users get jabberwocky instead of the file. Research indicates I am to edit the .htaccess file to add:
AddType application/epub+zip .epub
AddType application/x-mobipocket-ebook .mobiProblem is, I’m not entirely sure if I add it after the standard code or somewhere before its closing tag. This is the standard WordPress htaccess code:
# BEGIN WordPress
IfModule mod_rewrite.c
RewriteEngine On
RewriteBase /globalindieauthor/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /globalindieauthor/index.php [L]
/IfModule
# END WordPressWhere should I add the new code? Do I add it on lines before
/IfModule? Or somewhere else?Any help appreciated.
The topic ‘htaccess editing’ is closed to new replies.