Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URI Redirect Plus plugin
#1
Support forum for the URI Redirect Plus plugin.

Redirect URIs to internal or external pages (with '301 Moved Permanently' header). Also view the count and date of last redirection for each redirect.

Version 0.2.2 Changes
  • Imports redirect list from predecessor plugin on initial view, if available (see Earlier Versions)
  • Select drop box for internal pages now sorts by parent then page title
  • Added ability to redirect to external pages (i.e., other sites)
  • Removed 'Incoming URI' and 'Redirect Page' terminology in favor of 'From' and 'To'
  • Added redirect count and date of last redirection for each redirect
  • Added multilingual support via the required I18N plugin (currently only English and Danish)
Note: For space reasons, long external destination URLs have their HTTP and WWW removed, as well as having their middle text removed, i.e., example.com/...clste/wnerqylba. You can see the full URL by mousing over the truncated external URLs.

Earlier versions
This plugin is a successor to the no-longer-updated original URI Redirect plugin by Nathan Friemel (NathanF). Version numbering is continuing from where that earlier plugin left off (version 0.2.1).
Reply
#2
is it possible to extend the plugin to rewrite standard http:\\doman.tld. to https:\\domain.tld if i have inside my page direct links to images like http:\\domain.tld\image\test.jpg  ?

If i made normal rewrite from base url it does not work to show the images correct

Hope you can help
Reply
#3
Hi phpman,

The plugin is really for creating individual, complete URL redirects to go to other pages/websites. So if I understand what you are asking, that's way beyond the scope of this plugin.

I'm also not fully following what situation you are having. Are you saying that you are on a https webpage that displays images, and the src of the image is http:// and thus they are being blocked? I know newer browsers started doing that.

For that reason above, I always use relative URLs for images. Can you do that?
Reply
#4
I tried every manner of .htaccess Redirect 301 solutions and nothing works (keep getting the ?id= in the address and a 404 error page displays). I have fancy URLs enabled.

I am now trying plugins for redirects. I tried this one.

I updated my site and some of the URLs have changed slightly. I tried redirecting

from
articles/diy-horizontal-warping-mill
to
articles/horizontal-warping-mill

with your plugin but when I visit articles/diy-horizontal-warping-mill I get a blank page and it does not redirect.

I also noticed that when I chose the page to redirect to, that the link in the admin panel shows it with the parent slug being left off...that the "articles" is missing. I even tried it by using the new location as an external option, it still did not redirect.

What am I doing wrong?
Reply
#5
(2017-03-12, 17:33:44)joyofweaving.com Wrote: I tried every manner of .htaccess Redirect 301 solutions and nothing works (keep getting the ?id= in the address and a 404 error page displays).   I have fancy URLs enabled.

I'm not sure what is going wrong, but it seems like if things aren't working at the htaccess level, using a plugin is only going to compound your problem. First get htaccess working properly.

If you have Fancy URLs enabled, you should never be getting a ?id= in your URL.

When you go to your settings page ( /admin/settings.php ) , you Fancy URLs is checked, right? On that line of that page, I see that it says "Requires that your host has mod_rewrite enabled." Is that enabled?

Go to the admin's website health check up page here: /admin/health-check.php
Does it say "Apache Mod Rewrite Installed - OK"?
Reply
#6
Thanks for replying. I managed to get it figured out here: http://get-simple.info/forums/showthread...7#pid59727
Reply
#7
Decided to add a few updates.

Version 0.2.3 Changes
  • Fixed an error where redirects to internal pages were created incorrectly if the page title had a colon
  • When redirecting (or listing links to internal pages in the Existing Redirects table), URLs now conforms to the site's custom permalink setting (i.e., parent(s) and trailing slash after slug are included if appropriate)
  • Added a redirect creation date to the XML (though it's not displayed in the Existing Redirects table)
http://get-simple.info/extend/plugin/uri...plus/1062/
Reply
#8
(2019-12-06, 07:12:56)jlyon1515 Wrote: Decided to add a few updates.

Version 0.2.3 Changes
  • Fixed an error where redirects to internal pages were created incorrectly if the page title had a colon
  • When redirecting (or listing links to internal pages in the Existing Redirects table), URLs now conforms to the site's custom permalink setting (i.e., parent(s) and trailing slash after slug are included if appropriate)
  • Added a redirect creation date to the XML (though it's not displayed in the Existing Redirects table)
http://get-simple.info/extend/plugin/uri...plus/1062/

Hi Jared, is there anyway to have a selected redirect open in a new tab?
If not would you consider adding it?
It would be nice to have an option to choose if you would like to link to external sites without having to close the current site.

Many Thanks
Reply
#9
(2021-01-31, 07:53:45)Cre8gent Wrote: Hi Jared, is there anyway to have a selected redirect open in a new tab?
If not would you consider adding it?
It would be nice to have an option to choose if you would like to link to external sites without having to close the current site.

This plugin redirects links by setting the HTTP header's location value. There is no ability in an HTTP header to dictate current or new tab, because that's a browser/client-side thing. HTML code for a link can do that (with the target attribute), but that is not how these redirects are happening. They are using PHP's header function to set a new location. https://www.php.net/manual/en/function.header.php

Redirects just can't do that. It's the HTML that does that, and this plugin does not write any HTML at all.
Reply
#10
(2021-01-31, 12:36:08)jlyon1515 Wrote:
(2021-01-31, 07:53:45)Cre8gent Wrote: Hi Jared, is there anyway to have a selected redirect open in a new tab?
If not would you consider adding it?
It would be nice to have an option to choose if you would like to link to external sites without having to close the current site.

This plugin redirects links by setting the HTTP header's location value. There is no ability in an HTTP header to dictate current or new tab, because that's a browser/client-side thing. HTML code for a link can do that (with the target attribute), but that is not how these redirects are happening. They are using PHP's header function to set a new location. https://www.php.net/manual/en/function.header.php

Redirects just can't do that. It's the HTML that does that, and this plugin does not write any HTML at all.

Ok thank you very much for your quick response.


I will have to look at a menu link option with the ability it seems
Reply
#11
How about using some javascript to accomplish this:

Code:
window.open('_link is here_', 'name');

name is a name of the window. Following names should be supported:

    _blank - URL is loaded into a new tab. This is default.
    _parent - URL is loaded into the parent frame
    _self - URL replaces the current page
    _top - URL replaces any framesets that may be loaded

If the browser pauzes this behavior with a popup then try something like this:

Code:
var win = window.open('http://stackoverflow.com/', '_blank');
if (win) {
   //Browser has allowed it to be opened
   win.focus();
} else {
   //Browser has blocked it
   alert('Please allow popups for this website');
}
Reply




Users browsing this thread: 1 Guest(s)