• How can i edit the .htaccess file to allow bigger movie files then 8Mb i dont have the option to edit the php.ini file.
    Kind regards.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    You can try

    php_value upload_max_filesize 10M
    php_value post_max_size 10M

    But that will only work if your hosts permits .htaccess overrides for php.ini.

    Thread Starter drenriza

    (@drenriza)

    Thanks. How do i execute the file, does it do so automatically when it is uploaded?
    And how can i check if the htaccess file works?

    Thread Starter drenriza

    (@drenriza)

    Also, i work on a mac where a file is saved as a .rtf filetype. Do i need to change this so the server will understand it? The server is a linux server.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Thanks. How do i execute the file, does it do so automatically when it is uploaded?

    You need to make a backup copy of your .htaccess file first. The using a plain text editor like vi, add those two lines and save the file.

    Once that’s done, visit your blog to make sure it’s working. That will get implemented with every web page load of your blog.

    If something goes horribly wrong, just overwrite the modified .htaccess file with the backup you made.

    Thread Starter drenriza

    (@drenriza)

    is it possible to have multiple .htaccess files?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Not in the same directory. For WordPress you generally only care about the one in you blog’s directory.

    There could be others but the one you want to modify is in the same directory as wp-config.php (generally speaking, even that location can be elsewhere).

    Thread Starter drenriza

    (@drenriza)

    Well i cannot access the php.ini file to make the changes, because i have my website hosted by domain.com so in my /webspace/httpdocs/ created a .htaccess file and added the two lines

    php_value upload_max_filesize = 50M
    php_value post_max_size = 50M

    but still i cannot upload media files above 8Mb, what can i do?
    Also the admin backend still shows 8Mb how can i change this?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    but still i cannot upload media files above 8Mb, what can i do?
    Also the admin backend still shows 8Mb how can i change this?

    Sadly, you are probably stuck. That WordPress relies on that setting via php.ini. Sometimes the .htaccess overrides work not always (it’s host dependent).

    Apparently, this is not a setting that you can change. Try contacting your host provider and see if they will make an exception for you.

    Thread Starter drenriza

    (@drenriza)

    If i should get them to change the settings for me, what should i ask them to change exactly? Their is an .htaccess file a directory above where i create my file, would it be an idea to try and change the settings their?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Ideally, your host will update their php.ini file.

    If that doesn’t/can’t happen, then ask them to add the line to the place where your blog is. It sounds like you’ve already done that so talk to your host and see what options you have.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘.htaccess file’ is closed to new replies.