T
T
Theory Theory2021-05-29 12:30:23
htaccess
Theory Theory, 2021-05-29 12:30:23

Why changes in .htaccess are not saved?

htaccess in wordpress.

# BEGIN WordPress
# Директивы (строки) между `BEGIN WordPress` и `END WordPress`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


I add this and save:
php_value upload_max_filesize 64M
    php_value post_max_size 128M
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value max_input_time 300


after a while the changes are removed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Satisfied IT, 2021-05-29
@Narbek

Have you read this?

# The directives (lines) between `BEGIN WordPress` and `END WordPress`
# are created automatically and can only be changed through WordPress filters.
# Manual changes between these markers will be overwritten.

You need to add your lines either above the line # BEGIN WordPressor below# END WordPress

1
1000100, 2021-05-29
@1000100

Maybe you're adding it in the wrong place.
If you are in the right place, you are not allowed to edit the .htaccess file
Try to make changes to wp-config.php and / or function.php
Alternatively, create a php.ini file in the cgi-bin folder and write in it what you need
If you are sure that everything was done correctly and nothing helped, write to support

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question