• When I edit a theme through WordPress – I press save –
    there is a redirect
    Plugins disabled does not help

    http://site.com/wp-admin/theme-editor.php?file=functions.php (save)
    redirect on
    http://site.com/wp-admin/theme-editor.php

    htaccess
    `#
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/mobile/(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/m/(.*)$
    RewriteRule . /%1 [R=301,L]

    #
    RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
    RewriteRule .* ? [F,L]
    </IfModule>

    <Files wp-login.php>
    order deny,allow

    allow from 0000000000000000
    deny from all
    </Files>

    # 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

    • This topic was modified 9 years, 2 months ago by kolshix.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Never edit files via appearance->editor. Download them via FTP, edit them (after making a copy of what you downloaded), then upload.

    Thread Starter kolshix

    (@kolshix)

    I know that.
    I need a WORDPRESS editor for small fixes. Thinking the problem is not in WordPress, but the problem in hosting.

    Thread Starter kolshix

    (@kolshix)

    The problem is for sure in the hosting provider. I checked the old version of WordPress 4.6.1 – there also works a redirect – when I try to edit with “WORDPRESS editor”

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

The topic ‘Redirect when edit functions.php’ is closed to new replies.