t8shter
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: http links changing to https when I login to wp-adminwhen I delete the wp-supercache the problem goes away for a while.
Forum: Plugins
In reply to: [Redirection] [Plugin: Redirection] Root redirect is created on page creationsorry, that was the wrong file!
wp-content/plugins/redirection/models/redirect.php
Forum: Plugins
In reply to: [Redirection] [Plugin: Redirection] Root redirect is created on page creationI don’t remember what the original file looked like, but if you open wp-content/plugins/redirection/redirect.php and go down to around line 198 or so, you will see a Red_Item::sanitize line … we added that to the $url variable and put in the if below that … hope this helps a little.
$url = Red_Item::sanitize_url( $details['source'], $regex); // preg_match check added to prevent / from being redirected. if ( $group_id > 0 && $matcher && !preg_match('/^\/$/', $url) ) { $regex = ( isset( $details['regex']) && $details['regex'] != false) ? true : false; $position = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$wpdb->prefix}redirection_items WHERE group_id=%d", $group_id ) ); $action = $details['red_action']; $action_code = 0; if ( $action == 'url' || $action == 'random' ) $action_code = 301; elseif ( $action == 'error' ) $action_code = 404; if ( isset( $details['action_code'] ) ) $action_code = intval( $details['action_code'] ); $data = array( 'url' => $url, 'action_type' => $details['red_action'], 'regex' => $regex, 'position' => $position, 'match_type' => $details['match'], 'action_data' => $matcher->data( $details ), 'action_code' => $action_code, 'last_access' => 0, 'group_id' => $group_id ); $wpdb->insert( $wpdb->prefix.'redirection_items', $data );
Forum: Plugins
In reply to: [Redirection] [Plugin: Redirection] Root redirect is created on page creationYeah, any of the posts that I found with a solution weren’t helpful. We edited models/redirect.php so that it wouldn’t create a redirect for URL: / no matter what. That fixed our issue for now, but hopefully the author of the plugin will release an update soon with a permanent fix.
By the way, are you referring to 2.2.9 of the Redirection Plugin? Or 2.2.29 of WordPress? I’m on 3.0.1 of WordPress and version 2.2.23 of Redirection is still breaking. If there is a fix, other than deleting the newly created redirect each time a blog post or page is created, I really need the fix!
where can I get 2.2.29?
Forum: Plugins
In reply to: "redirection" plugin bug?!Asapcorp, I’ve seen this answer a few different places, but it isn’t enabled on my site. So, the only thing that fixes my problem is deactivating the plugin. Is there anything else that I can do?
usedbook, I looked for a redirection where you mentioned you found one…and there isn’t one.