Hello,
I have already referred to this post: https://www.ads-software.com/support/topic/redirecting-a-pdf-file-to-another-pdf-file/
Instead of redirecting the PDF file (which does not seem possible), can we redirect the whole directory itself? e.g. /wp-content/Uploads/gravity_forms contents get redirected to another page? It does not seem to work.
]]>Hello, I’ve been moving some cron tasks to run as a php script instead of via the URL. i.e. calling httpdocs/wp-cron.php When running this way we are receiving this error from your plugin.
PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/simple-301-redirects/includes/Helper.php on line 22
PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/simple-301-redirects/includes/Helper.php on line 28
After installing and adding redirects, I only get 404 errors. Redirects do not work.
]]>Function loadtextdomain_just_in_time was called incorrectly. Translation loading for the simple-301-redirects domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. (This message was added in version 6.7.0.).
It happens when we ‘init’ action with priority of 1 or early.
Solution: For those, who face this issue.
\simple-301-redirects.2.0.11\simple-301-redirects\includes\Admin.php
In Admin.php,
$tracker->set_notice_options(array(
‘notice’ => __( ‘Want to help make <strong>Simple 301 Redirects</strong> even more awesome? You can get a <strong>10% discount</strong> coupon on our Premium products if you allow us to track the non-sensitive usage data.’, ‘simple-301-redirects’ ),
‘extra_notice’ => __( ‘We collect non-sensitive diagnostic data and plugin usage information.
Your site URL, WordPress & PHP version, plugins & themes and email address to send you the
discount coupon. This data lets us make sure this plugin always stays compatible with the most
popular plugins and themes. No spam, I promise.’, ‘simple-301-redirects’ ),
? ? ? ? ));
REMOVE TRANSLATION OF TEXT – __()
===================
?$tracker->set_notice_options(array(
? ? ? ? ? ? ‘notice’ =>’Want to help make <strong>Simple 301 Redirects</strong> even more awesome? You can get a <strong>10% discount</strong> coupon on our Premium products if you allow us to track the non-sensitive usage data.’,
? ? ? ? ? ? ‘extra_notice’ => ‘We collect non-sensitive diagnostic data and plugin usage information.
Your site URL, WordPress & PHP version, plugins & themes and email address to send you the
discount coupon. This data lets us make sure this plugin always stays compatible with the most
? ? ? ? ? ? popular plugins and themes. No spam, I promise.’,
));
]]>Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in?[…]/wp-content/plugins/simple-301-redirects/wp-simple-301-redirects.php?on line?150
]]>I’m creating rules for migration from MovableType.
But .assets folder that contains images under MT is not redirected.
I guess this plugin is misunderstanding dots?
The rules work with the Redirection plugin, so it’s not a restriction on the server.
Since the update to WordPress 6.7 I get this notice (when WP_DEBUG is true):
Notice: Function _load_textdomain_just_in_time was called?incorrectly. Translation loading for the?simple-301-redirects?domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the?init?action or later. Please see?Debugging in WordPress?for more information. (This message was added in version 6.7.0.) in?/Users/Me/Sites/localhost/site_xyz/wp-includes/functions.php?on line?6114
Hi,
i’m using Simple 301 Redirect.
I have a problem with redirection of old url with querystring parameter.
Example:
old url: https://mysite.com/products.cfm?productid=24
needs to be redirected to
new url: https://mysite.com/mycategory/myproduct/
Query parameter don’t need to be forwarded
Is this possible?
Thanks
]]>There is no way to bulk delete redirects. Furthermore deactivating and deleting the plugin does not clear out all the data at all. The data is still retained in the database which is bad.
]]>Hi, I’m needing to send users seeking this result: https://allendale.oneriverschool.com/camps/?filter-age%5B%5D=grades-9-12
to
https://allendale.oneriverschool.com/camps/?filter-age%5B%5D=teens
I have the entire urls entered in the redirect fields but I can’t get it working. Is it possible to redirect filtered results?
Thanks!
]]>Hi, I’m trying to do a wildcard redirect and get the URL parameters to transfer over to the designation.
Original URL: https://www.daytonparking.com/reservation/book/?loc=440-16&promo_code=HEN15
Desired destination URL: https://rez.daytonparking.com/?loc=440-16&promo_code=HEN15
Redirect 301 setup on https://www.daytonparking.com:
from: /reservation/book/*
to: https://rez.daytonparking.com/*
Should that work?
]]>Hi,
Would it be possible to enable this plugin for other roles than administrator?
kind regards,
Emile
]]>I am having trouble with just certain redirects. It seems to be isolated to a certain folder but other redirects work perfectly fine.
]]>Hi,
I migrated my site and new site is non-www. Now, i can see that the Redirect rules which I had given in the plugin are not working. What should I do?
Thanks.
Hello –
The permalink structor of my company site was changed before I started there, and now redirects are needed. Can you tell me how to create a wildcard redirect from blog pattern
https://www.mysite.com/blog/2023/01/POSTNAME (https://www.mysite.com/blog/YEAR/MONTHNUM/POSTNAME)
to https://www.mysite.com/POSTNAME
The year, monthnum and postname are all dynmic fields. How would I do this? I basically need to remove the slug /blog and the year and month from the url
]]>According to this support forum the issue is known, but for some reason I don’t understand, the topics are getting closed as resolved while it remains.
Vendor replies are always friendly, but for what remains, only adding confusion what the fix release politics are.
Therefore just another report against WP Simple 301 Redirects Version 2.0.8. The script is parsed and executed by PHP 8.0.30 (cli).
When running in cron mode, this plugin spills a warning on the PHP SAPI diagnostic channel:
PHP Warning: Undefined array key “HTTP_HOST” in /var/www/…/wp-content/plugins/simple-301-redirects/wp-simple-301-redirects.php on line 173
Please note: In cron, any output, including the diagnostic channel, goes into reporting. Just mentioning this, because it would be really helpful if this will be fixed upstream, so that upgrading the plugin would not lead again into noise in reporting.
This correlates to the get_address() function that accesses the PHP SAPI dependent $_SERVER array unchecked (line 173):
164 /**
165 * getAddress function
166 * utility function to get the full address of the current request
167 * credit: https://www.phpro.org/examples/Get-Full-URL.html
168 * @access public
169 * @return void
170 */
171 public function get_address() {
172 // return the full address
173 return $this->get_protocol().'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
174 } // end function get_address
The fix is rather trivial in terms of warning suppression, just don’t access $_SERVER array members if they do not exist. The directly following get_protocol() is an example of how such an isset()-check could look like (line 180 in the same file):
175
176 public function get_protocol() {
177 // Set the base protocol to http
178 $protocol = 'http';
179 // check for https
180 if ( isset( $_SERVER["HTTPS"] ) && strtolower( $_SERVER["HTTPS"] ) == "on" ) {
181 $protocol .= "s";
182 }
183
184 return $protocol;
185 } // end function get_protocol
As both functions (methods) follow each other, we could assume that at least one editor of that file – in past or present – did knew about a way to handle it (or at least were able by chance or accident). May I suggest to find out who it was and consult them if you need technical assistance with this?
If in case looking for an already reported fix, find the posting makkabi by 1 year, 10 months ago suggesting to insert isset() checks.
Another fix is to prefix the dollar signs ($) that follow the string concatenation operator (.) with the error suppression operator (@) on that line, here as a sed command line:
$ sed -i '173s/\.\$/\.@\$/g' wp-content/plugins/simple-301-redirects/wp-simple-301-redirects.php
# no output, sed (GNU sed) 4.2.2
As this continues to come up, it might require a plugin to patch this plugin, because it took now already more than two years and it seems that having Emojis in a plugin readme is of more importance and in the focus, perhaps on a level similar to friendly replies in the support forums. Which are nice, but it’s more than two years let alone reported in the Wordpess support forums.
Is there any intend to fix this? If so, how would the planning/scheduling of it look like in terms of blockers and an estimation of fix release version/date? Do you have any needs or requirements? Do you accept patches for this (with a more serious fix)? Which PHP versions do you need to support?
]]>We tried to proactively load information into the Simple 301 redirect plugin, but the import failed. Instead of adding individual line items, it added a redirect for the root domain which I’m unable to edit. It looks successful, but when we refresh the page the Request field reverts. We’re also unable to delete the redirect.
]]>Hi – we’ve been setting up redirects for old content but none of the redirects are working.
I’ve seen your documentation and have tried everything you suggested:
-WP updated
-all links were copied correctly, (no unwanted characters that I can find)
-browser cache cleared
– disabled yoast plugin – for poss conflicts
example redirect
https://www.cuyamungueinstitute.com/laura-lee/elkington.htm
to
https://www.cuyamungueinstitute.com/articles-and-news/
still getting 404 errors
Please help!
I am running php 8.2.x and I am getting the warnings related to the plugin.
Thanks
Hello, After deleting the plugin, the redirection still works. What should I do to remove unwanted redirects? I cleared the browser cache. Thank you for help
]]>Hi there, the plugin is working fine if I redirect a standard link or folder such as mysite.com/something but if I try redirect an old file with an extension such as mysite.com/something.php then I get an internal server error.
Is there a setting to overcome this?
Is there a way with this plugin to tell how long you’ve had the redirect live? Or a way to tell when it was last accessed? I know you’re not supposed to leave a 301 redirect up for more than a year, but this is a redirect plugin that doesn’t naturally show you how long the redirect has been live unless I’m missing something.
]]>Hello!
We have a website where all front end pages should be redirected, but we still want access to the admin. We also are redirecting specific pages and parts of the site to specific pages on another site, but we want to configure a “catch all” redirect of sorts to catch all the other front end URLs we haven’t specified and redirect to the homepage of this other site. Is there a way to do that?
Thanks!
]]>I installed the plugin and it works fine, but it’s adding an extra forward slash right after the name of the site. Below is an example of the redirect:
/blog/* -> https://www.somesite.com/*
I’ve enabled wildcards, and it does properly redirect everything from blog to the root directory. But the result looks like this:
https://www.somesite.com//a-page-redirected
Any ideas why this might be happening?
]]>301 redirect is working only when I am logged in as an Admin. It is going to the desired url.
]]>Hello, I have been using your 301 redirect plugin for a long time, but today I realized that it does not redirect the amp pages, when redirecting the main url. is there any way to fix this?
]]>Greetings,
redirect works beautifully on desktop, but currently results in a 404 on mobile. If I create an empty page at the address, mobile shows the empty page, so still not redirect. Cannot be a cache issue, as I’m redirecting an old page address I just discovered still exists and have certainly never visited. ?? Any ideas where to start?
Edit: Well, scratch that – it no longer works on desktop either. Back to the drawing board!
]]>Hello,
I am having an issue with my site after moving from development to production. Almost all of my redirects are not working anymore.
Any ideas?
Thanks,
]]>WPML language plugin allows you to use 2 different domains to handle the languages + content on your single WordPress website.
Currently my old website uses the following:
xyzFRENCH.com
xyzENGLISH.com
Both are the same site, they just load different language content on the pages depending on the domain you enter.
My question:
Can I use this plugin’s redirect settings to redirect pages for both domains?
Thanks!
]]>Hello –
Where in the DB are the redirects stored in the DB? Somehow there are 301 entries with empty fields that were saved that is causing the site to show “ERR_TOO_MANY_REDIRECTS” until I disable the plugin. Even if I Deactivate and delete the plugin, and reinstall it, the same entries are showing and it causes the site to go down again. I need to remove the original entries that are stored and redo them.
Also, please have your plugin clean up after itself when the plugin is removed from the site or at least include an option in the options panel to delete all data upon deactivation.
Thanks
]]>