Hi,
I use this for a while with no issues. For the first time I had to create a redirect with greek slug characters and it does not work. I also tried with URL encoded characters.
]]>I created a redirect from https://jengrisanti.com/script-consulting to the homepage https://jengrisanti.com.
It works fine within the site environment. For example: If I am on the homepage and I add /script-consulting to the url, the redirection works. (and actually clicking the link from here works!?)
HOWEVER, when I click on the link from Google docs or an email, https://jengrisanti.com/script-consulting leads to a 404 page? Please advise.
]]>Can Safe Redirect turn on URL masking for specific redirects?
]]>Hello. We created redirect rules but nothing is redirected. What are we missing? Thanks!
https://imgur.com/6Qv9yBa
Is it possible to use this plugin to replace a string in a URL? So, for example, if I have https://mysite.com/author/someauthor, can I have all authors redirect to https://mysite.com/person/someauthor?
]]>Trying to redirect /some-page?X=5
from URL /some-page*
to URL /some-other-page/
query string is still present when you land on /some-other-page/?X=5
how do I remove the query string?
Hi. First, thanks for this great plugin. Would it be possible to use a custom 410 template instead of just outputting wp_die()
gray page with a single optional message?
I’d like to provide more information on the page, a logo, and a link to the homepage with a custom design.
For instance, place a 410.php
template within the theme folder that’ll load up? I know there are some dedicated 410 plugins in the plugin repository that support custom 410 templates, but I’d like to use Safe Redirect Manager as it already has 410 support instead of installing two plugins.
Thanks.
]]>We have SRM 2.1.1 on WP 6.4.3 (managed WP by DreamPress). We installed SRM and migrated redirects from htaccess as recommended by DreamHost, when they migrated from Apache to NGINX. I used WP-CLI for re-creating our redirects in SRM, and the commands explicitly specified the status code (all 301). I happened to notice today that a redirect someone recently created through WP admin had a 302 status code. While trying to understand why, I discovered that if I create a new SRM redirect in WP admin, it defaults to a 302 status code. We rarely if ever have a need for a 302 redirect. 301 Moved Permanently is the first item in the HTTP Status Code drop-down, but it’s defaulting to 302 Found. Poking around in SRM, I see where a sorted status code array is returned:
...
ksort( $status_code_array, SORT_NUMERIC );
return $status_code_array;
But no apparent way to change/override the default selected code in the drop-down menu. I prefer to change/override the default to 301 instead of asking the admin user who would normally add or edit one-off redirects, to manually select status code 301. I’m sure they simply heeded the If you don’t know what this is, leave it as is. text next to the drop-down and went with the default. Is 302 actually the default status code for SRM or is this unexpected? Can you offer any suggestions for changing the default to 301?
Thank you in advance!
]]>Hello Sir,
My website is a BuddyPress Community website.
This in a way, means that few or more hundreds of people will be Logging in to Register and create Accounts on my website.
Now, I don’t want these people to ever see the WP-Admin and the WP-Login.Php Pages.
In short, I don’t want these my users to even know that a WP-Admin and Wp-Login.Php Page even exist.
It should be that, even if people deliberately type “mydomain.com/wp-admin” or they deliberately type “mydomain.com/wp-login.php” , it should immediately and instantly redirect them to the Custom Login Page that I have created– and they should never see the “wp- admin and “wp-login.php” Page.
Can this plugin achieve such function for me?
Regards.
]]>Hello –
The permalink structure of my site was changed before I started there, and now redirects are needed. Can you tell me how to create a wildcard redirect from:
https://www.mysite.com/blog/2023/01/POSTNAME(https://www.mysite.com/blog/YEAR/MONTHNUM/POSTNAME)
to
https://www.mysite.com/POSTNAME
so, I need the redirect to remove /blog/%year/%monthnum%/
I’d prefer to do this through a plugin but I haven’t found one to support this yet.
thanks!!
]]>Hi there!
Before you create your own thread on these forums, please note that the Safe Redirect Manager plugin is marked as Stable support:
10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress.
Given the above support note, we do not intend to be regularly active on these support forums and will instead keep a closer eye on bugs or security reports within the GitHub repository. Even with the Safe Redirect Manager plugin being under Stable support, there are several ways in you can find the answers to your questions:
Thanks,
Team 10up.
This plugin contains code deprecated for php8.1. If a fix in the works?
$ phpcs --standard=PHPCompatibilityWP --runtime-set testVersion 8.1 --extensions=php --ignore=*/vendor/*,*/node_modules/* ./plugins/safe-redirect-manager/
FILE: /Volumes/EVO/Active_Sites/NESN/vm/app/public/wp-content/plugins/safe-redirect-manager/inc/functions.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
336 | WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1
-------------------------------------------------------------------------------------------------------------
FILE: /Volumes/EVO/Active_Sites/NESN/vm/app/public/wp-content/plugins/safe-redirect-manager/inc/classes/class-srm-post-type.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------
670 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
676 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
-------------------------------------------------------------------------------------------------------------------------------
Time: 233ms; Memory: 16MB
]]>
Hello,
My WP website URL is like this: https://blog.mydomain.com. I am going to be changing the domain name to https://mydomain.com. Just moving from the subdomain to the main domain.
This looks like a simple task that I can do on the control panel at my site host, followed up with a search/replace on the site to catch any links with the old URL.
I am concerned about external links that reference my site with the old URL. I want to be sure users who type the old address are rerouted to the new one.
Does Safe Redirect Manager handle this? If so, do I need to enter a redirect for each page in the site?
]]>I use regex ^\/\?sid=(.*) to redirect forms to a new page. The URL contains both upper and lower case information. When the page loads the URL is all lower case. It has to retain the mixed case. Is this actually possible, or is the browser simply converting on its own?
https://www.myname.org/?sid=v2HgtLyz_la2PdT_DfN1t5M9xJZibZIzbfRzesDGW_ffOXW-ORqbCcl1AqyK0EOh gets converted to :
]]>After the latest update to Safe Direct Manager (Yesterday) my site is no longer able to load. I get a black screen and if I click on that, I see the following error code:
/public_html/wp-content/plugins/safe-redirect-manager/inc/classes/class-srm-redirect.php on line 144
PLEASE HELP!
Col Turner
]]>Hi, thanks for the great plugin. I have one page that I redirect to another one (/urlaub/) when I am on vacation.
Last time when I put that rule back into draft after my vacation, however, the tool still kept redirecting.
I deleted the rule and still, the page gets redirected. I have deleted the cache on my server and all browsers, so that seems to not be the problem.
Any ideas?
Thank you
]]>Hi,
I newly installed Safe Manager for redirect my logout page to Homepage
https://si3.photorapide.com/invites/photos/2022/11/027981.jpg
but not success, the page open is:
https://si3.photorapide.com/invites/photos/2022/11/016xjd.jpg
and when I click the button logout, it opens the WP login page.
Do you have any solution ? I wish it could redirect to my Homepage.
Thank you so much !
Hello, recently updated to 1.11.1.
WPVIP is flagging the following:
plugins/safe-redirect-manager/inc/classes/class-srm-post-type.php LINE:670, 676
Warning( severity 5 ): The constant “FILTER_SANITIZE_STRING” is deprecated since PHP 8.1 (PHPCompatibility.Constants.RemovedConstants.filter_sanitize_stringDeprecated).
———-
plugins/safe-redirect-manager/inc/classes/class-srm-post-type.php LINE: 688
Warning( severity 5 ): Detected usage of meta_value, possible slow query (WordPress.DB.SlowDBQuery.slow_db_query_meta_value).
]]>Hello, I am attempting to redirect one PDF to another using Safe Redirect Manager. If this is possible I would love to know what I should place in the “redirect from” and “redirect to” fields? Currently all variations I try are not working. The old PDF is https://www.injurymatters.org.au/wp-content/uploads/2021/05/Know-Injury-WA-Falls-Fact-Sheet.pdf> to link to is https://www.injurymatters.org.au/wp-content/uploads/2022/07/KnowInjury-TransportInjuriesInWAFactsheet.pdf
]]>what is the limit number of redirects that I can write with this plugin?
Having a lot of redirects (around 500) will slow down the performance of the website?
]]>Hello, should the Safe Redirect Manager be functioning with WooCommerce product links?
I want to redirect from a new upcoming product to a extra info page saying that the product will be available soon.
The link is like /en/product/product-slug (because we are also using WPML, it’s multilingual).
But if I enter any form to redirect from, it will not work. I tried:
/en/product/product-name
/*/product-name
/*/*/product-name
*product-name*
/*/*/product-name/*
…but none of the above worked for the link mysite.com/en/product/product-name
]]>Hi I have a move from
https://blogs.university.ac.nz/researchgroup
to
https://researchgroup.com/
I’m not in production yet but have a question about the order I should put the entries into the Safe Redirection Manager.
Most things e.g. Posts and some pages will work with
/researchgroup/* https://researchgroup.com/
But I have 3 specific things that need to be unique and I don’t know if the order they exist in the Safe Redirection Manager makes a difference.
The page showing all posts is the home page of the original site
https://blogs.university.ac.nz/researchgroup
but is the following page in the new site
https://researchgroup.com/blog/
Should the entry be
/researchgroup/ https://researchgroup.com/blog/
and should it come before or after the /researchgroup/* https://researchgroup.com/ entry ?
I have an issue with the page listing all the cantegories an all the tags too
/researchgroup/category/* https://researchgroup.com/topics/
/researchgroup/tag/* https://researchgroup.com/tags/
Finally I have an issue with the page that lists all an authors posts
/researchgroup/author/johnbrown/* https://researchgroup.com/author/jbrwn/
So all up I have the following but would appreciate advice on what order to put them into the plugin , and if that even makes a difference.
/researchgroup/* https://researchgroup.com/
/researchgroup/ https://researchgroup.com/blog/
/researchgroup/category/* https://researchgroup.com/topics/
/researchgroup/tag/* https://researchgroup.com/tags/
/researchgroup/author/johnbrown/* https://researchgroup.com/author/jbrwn/
Many thanks for your comment / help.
]]>I am on Php 8. When I activate the plugin it gives the error:
Deprecated: Required parameter $post follows optional parameter $actions in \wp-content\plugins\safe-redirect-manager\inc\classes\class-srm-post-type.php on line 98
Is it possible for you to fix this so it can work good on Php 8?
]]>Hi
we are about to migrate a website to another domain, where also the URL-structure will be completely different, example
/all_events_en to /en/events/
/all_events to /de/events/
and all the event-posts (custom post types).
We have created a table that contains all source- and target-slugs and have added a third column with a repeating value of “301” in each field.
now we’d like to import the table, as CSV or whatever might be suitable.
Since there’s no import-feature available, we’re considering to import via MySQL, but i’m not so experienced with MySQL and PHPmyadmin, so I wonder if you can help us by providing a query for this?
Thank you in advance and kind regards,
Sascha
Hi,
I want to redirect my blog articles to the root instead of under /blog
I tried adding a rule for /blog/*
-> /*
but this results in /blog
also being redirected to the root. I also tried adding a rule for /blog/*/
but it didn’t work.
I am adding forcing a trailing slash on my urls.
Is there a way I can fix this? Thank you!
]]>Is it possible to raise the maximum number of redirects we can create with the tool? We’ve hit our maximum number of allowed redirects (500).
]]>Hi,
I place my question ones more. I tried the given instructions (@jatindevani) and they were good, but still there is something wrong.
If I use Google and use the words “ms Jenny”, the searc engine gives me a list where I choose this URL
https://www.kokkola.fi/tankar_2/yhteydet/fi_FI/ms_jenny_1/
Following given instructions I put this URL for the text box “Redirect from” and as a form “/tankar_2/yhteydet/fi_FI/ms_jenny_1/”
and then I choose the URL for the page where this information is given on our new websites. URL is https://www.visitkokkola.fi/majakkasaari-tankar/.
This how I setting these paths, should be right, but still I get the redirection wrong to the page which is under domain kokkola.fi, not visitkokkola.fi. It goes to this URL https://www.kokkola.fi/tankar_2/yhteydet/fi_FI/ms_jenny_1/.
Somehow @jatindevani managed to get it right, but I dont know where I do something wrong.
My previous question:
Hi,
I have a problem with this Safe Redirect Manager, which is already added in our site admin. I am just a beginner with this and need help.
I have an old page URL
https://www.kokkola.fi/tankar_2/yhteydet/fi_FI/ms_jenny_1/
and it should be redirect to this address
https://www.visitkokkola.fi/majakkasaari-tankar/
What should I write in textbox “Redirect from”? The whole old URL or just a part of it? If I check Enable regex, what happens?
And the other text box “Redirect to” goes this new URL, right? And the whole URL with https?
Thanks in advance.
Juha
]]>Having trouble getting a regex to work. The old url was something like /alabama/ and it’s moving to /new-slug/alabama/
If it was just 1 it would be simple but let’s say it’s all the states.
From:
/(alabama|alaska|arizona|arkansas|california|colorado|connecticut|delaware|florida|georgia|hawaii|idaho|illinois|indiana|iowa|kansas|kentucky|louisiana|maine|maryland|massachusetts|michigan|minnesota|mississippi|missouri|montana|nebraska|nevada|newhampshire|newjersey|newmexico|newyork|northcarolina|northdakota|ohio|oklahoma|oregon|pennsylvania|rhodeisland|southcarolina|southdakota|tennessee|texas|utah|vermont|virginia|washington|westvirginia|wisconsin|wyoming)
To:
/new-slug/$1
end up with:
/new-slug/new-slug/new-slug/new-slug/new-slug/new-slug/
I’m sure I’m missing something in the from regex, maybe?
]]>Hi, the master.
we got error like this:
Notice: Undefined property: stdClass::$edit_page in /home2/xxx/public_html/wp-includes/capabilities.php on line 166
please advise. thank you.
We have noticed that if we create a redirect and then post that url to social media and tracking parameters get added it will result in a 404 error. To get around this we have been trying to remember to add a wildcard to any new redirects created, but this has caused some issues with similar urls (i.e. “/connect” & “/connect-two”).
What is the best way to prevent 404 errors? Is there an option to just allow any parameters added to a url to be added to the forwarded url?
]]>