Follow

Redirect Editor

The redirect manager in Rivista is used to redirect a URL for a local domain assigned to a Rivista install to any either a local URL or to a external URL.

In Rivista to Rivista redirects, the 'Redirect From' page cannot exist when being redirected to another Rivista page. Please delete the origin page to create a redirect. Failure to do so will lead to a redirect loop. 

Single Redirects

Below are examples of common redirects. The Redirect From and Redirect To section displays examples of the redirect you'd like to created. The Shortcut path and Full URL path are the fields as listed in the Rivista redirects manager. 

1. Local to Local - same base domain, good for new site implementation

  • What are the urls I want to redirect?
  • Redirect From: www.mydomain.com/cheese/
  • Redirect To: www.mydomain.com/Food/cheese/
    How to setup:
  • Shortcut path: /cheese/
  • Full Url path: /Food/cheese/


2. External URL to Local URL

  • Redirect From: www.notmydomain.com/cheese/
  • Redirect To: www.mydomain.com/Food/cheese/

  • Shortcut path: www.notmydomain.com/cheese/
  • Full Url path: /Food/cheese/


3. Local URL to External URL

  • Redirect From: www.mydomain.com/Food/cheese/
  • Redirect To: www.notmydomain.com/cheese/

  • Shortcut path: /Food/cheese/
  • Full Url path: www.notmydomain.com/cheese/

 

Note: do not include /index.php in redirects. 

 

Many Redirects - Import 

To import many redirect assignments at once, you can upload a tab delimited text file using the "import" button at the bottom of the page. The file does not need any information beside the shortcut path and full url. 

The import function does not check for duplicate or similar entries, so check your import file to prevent possibly conflicting redirects. 

Example of import file format:

gtxcel.com/example1    http://www.gtxcel.com/GTxcel-Publication/example1
gtxcel.com/example2    http://www.gtxcel.com/GTxcel-Publication/example2
gtxcel.com/example3    http://www.gtxcel.com/GTxcel-Publication/example3
gtxcel.com/example4    http://www.gtxcel.com/GTxcel-Publication/example4
gtxcel.com/example5    http://www.gtxcel.com/GTxcel-Publication/example5
Have more questions? Submit a request

Comments

  • Avatar
    Steven Phelps

    It's unclear to me if the file import will overwrite any existing redirects -- does the import kill them or just add to the list?

  • Avatar
    Zach Wilder

    A file import will only append entries, it will not delete old entries. That said, identical listings can conflict if the shortcut or destination differs.

  • Avatar
    Shannon Linsenbigler

    Where is this functionality?  I can't seem to find it in the system.

  • Avatar
    Zach Wilder

    The redirects editor is at the bottom of the left-hand menu under the publishing tab in Rivista. 

  • Avatar
    Shannon Linsenbigler

    Okay I added my redirects in, but they don't appear to work...if I type in the URL I just end up on a 404 page, does it take time for the system to add them or something?

    I'm aware of the quoted entries here, and I fixed the problem in the file that I used to upload so don't worry about that.

  • Avatar
    Joe Barry

    Is it possible to use the redirects editor for secure (https) pages?

  • Avatar
    Zach Wilder

    Shortcut paths using an HTTPS extension will forward in the same manner has a normal link. For instance: the shortcut path "/SHOPS/" associated with full URL "https://www.godengo.com/Shop/" will forward both "http://www.godengo.com/SHOP/" and "https://www.godengo.com/SHOP/"

  • Avatar
    Luke Seemann

    Is there any way to get redirects to ignore the querystring? For example, if we have /foo ridirecting somewhere, we'd like /foo?utm_campaign=bar to ridirect there, too.

  • Avatar
    Zach Wilder

    It isn't possible to use "wildcards" with the redirect editor, but you could add as many entries you need if there are few enough strings to account for.

    /foo?utm_campaign=bar1 --> www.foo.bar

    /foo?utm_campaign=bar2  --> www.foo.bar

    /foo?utm_campaign=bar3 --> www.foo.bar

    Would be fine unless you were planning to go all they way up to /foo?utm_campaign=bar999 or something. 

    If you need that, an .htaccess file with the appropriate mod_rewrite wildcard rules will be necessary. 

  • Avatar
    Luke Seemann

    Super, thanks for the response. The use case here is our newsletter campaigns, which we send out daily, so it would be impractical to update the redirect table with each new campaign. But we'll just avoid using redirect links within out newsletters so that the querystrings don't cause any issues.

  • Avatar
    Welker, Ric

    I'm trying to create a redirect and getting this message:   Saving failed: Could not create redirects file. Please check file permissions of containing directory and ensure that it is writeable.             

     

    what am I doing wrong?

  • Avatar
    Luke Seemann

    FYI, I figured a way to accommodate querystrings on redirects.

    Say we have a redirect from /subscribe. Want that redirect to be honored even if someone goes the url /subscribe?utm_source=newsletters

    So I added the following to the 404handlers.php file in our /html directory:

    if (strstr ( $url, "?utm")) { // This allows us to use UTM query strings on redirect URLs

    $url = strtok($url,'?');

    }

     

    Now, if the script encounters a UTM querystring, it strips it off before trying to match the URL to the redirects file. So far, so good.

     

Powered by Zendesk