• Hi there – very new to all this so please forgive me. πŸ˜›

    I installed WordPress and the Avada theme, onto GoDaddy (I already regret using their services). Anyway;

    Avada is telling me I need to do the following:

    -Increase PHP Time Limit (max execution)
    -Increase Max Input Vars

    I have the two lines of code that need to be added to .htaccess …but I don’t know where in the file to add the two lines of code

    the two lines of code are:

    php_value max_execution_time 300
    php_value max_input_vars 1500

    My .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    So where in all that do my additional lines of code go?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The new lines can go anywhere outside of the existing WordPress block. Personally, I normally add things at the start of the file, only because that way they are closer to the top when I open the file in my text editor. πŸ™‚

    It actually doesn’t matter.

    I recommend inserting two new lines at the beginning of the file. Before # BEGIN WORDPRESS

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How do i add lines of code to .htaccess?’ is closed to new replies.