Title: Redirect when edit functions.php
Last modified: April 7, 2017

---

# Redirect when edit functions.php

 *  [kolshix](https://wordpress.org/support/users/kolshix/)
 * (@kolshix)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-when-edit-functions-php/)
 * 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](http://site.com/wp-admin/theme-editor.php?file=functions.php)(
   save)
    redirect on [http://site.com/wp-admin/theme-editor.php](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](https://wordpress.org/support/users/kolshix/).

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-when-edit-functions-php/#post-9008384)
 * 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](https://wordpress.org/support/users/kolshix/)
 * (@kolshix)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-when-edit-functions-php/#post-9008787)
 * 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](https://wordpress.org/support/users/kolshix/)
 * (@kolshix)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-when-edit-functions-php/#post-9008793)
 * 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.

## Tags

 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [kolshix](https://wordpress.org/support/users/kolshix/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-when-edit-functions-php/#post-9008793)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
