How to redirect a journal to an external resource

Hi @jascanio

Redirects can be done by different ways. Thinking about your question a simple approach would it be use .htaccess 301 redirect conf.

E.g.:

You have your new domain/ojs: www.newurl.com/index.php/journalA
And your old URL is: www.oldurl.com/journalA

Create or edit a .htaccess file on root web folder of new OJS instance (Apache webserver = ./public_html) and add this lines

#Apache
RewriteEngine On
RewriteRule ^/index.php/journalA http://www.newurl.com/journalA [R=301,L]

This approach avoids tweak your OJS app or your database and it is easy to restore previous state, if anything goes wrong, just delete this two lines and everything will be back.

If your webserver is Nginx then you need to change your nginx.conf (and reload or restart it), but I advise to ask for a IT help, if you are not used to it. In summary you will need add a chunk of code (example bellow) inside your nginx.conf file:

#Nginx
location ~ /index.php/journalA/(.*) {
return 301 http://www.newurl.com/journalA;
}

Hope it helps

Israel

P.S. I have no idea how to do it in a MS Server (actually I do have, but I don´t think it is a good idea try it :slight_smile: )