Page 1 of 1

Changing the login page

Posted: Thu Sep 12, 2019 7:30 am
by eventoteam
Respected Team,

Can you please let me know the procedure to redirect login page from http://win-eim4hfisnsj/sys/en/neoclassic/login/login to http://win-eim4hfisnsj/sysworkflow/en/n ... ogin/login. Whenever, i enter http://win-eim4hfisnsj/ it redirects automatically to http://win-eim4hfisnsj/sys/en/neoclassic/login/login.

I'm using 3.2.1 version of PM.

Re: Changing the login page

Posted: Thu Sep 12, 2019 6:52 pm
by amosbatto
Edit the file workflow/public_html/index.html and change the line:
Code: Select all
    <meta http-equiv="REFRESH" content="0;URL=sys/en/neoclassic/login/login" />
To:
Code: Select all
    <meta http-equiv="REFRESH" content="0;URL=sysworkflow/en/neoclassic/login/login" />

Edit your pmos.conf file and inside the virtualhost definition add the line:
Code: Select all
        Redirect /sys/en/neoclassic/login/login http://win-eim4hfisnsj/sysworkflow/en/neoclassic/login/login
Here is an example on my machine:
Code: Select all
<VirtualHost localhost>
    ServerName "localhost"

    DocumentRoot /opt/pm3.3.10/workflow/public_html
    DirectoryIndex index.html index.php

    <Directory /opt/pm3.3.10/workflow/public_html>
        Options Indexes FollowSymLinks MultiViews
        AddDefaultCharset UTF-8
        AllowOverride None
        Require all granted
        ExpiresActive On

        #added to redirect to the "workflow" workspace:
        Redirect /sys/en/neoclassic/login/login http://localhost/sysworkflow/en/neoclassic/login/login

        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
        </IfModule>
        AddOutputFilterByType DEFLATE text/html
    </Directory>
</VirtualHost>

Re: Changing the login page

Posted: Thu Sep 12, 2019 7:15 pm
by amosbatto

Re: Changing the login page

Posted: Fri Sep 13, 2019 1:22 am
by eventoteam
@amosbatto: Thankyou so much, it worked.

Also, can you guide me, how can i remove this popup?

Re: Changing the login page

Posted: Fri Sep 13, 2019 7:00 pm
by amosbatto
eventoteam wrote: Fri Sep 13, 2019 1:22 am @amosbatto: Thankyou so much, it worked.

Also, can you guide me, how can i remove this popup?
If you check the box "Don't show me again", then it won't appear again.

If you want to stop it from appearing in the source code, then see:
https://www.pmusers.com/index.php/Do_no ... ome_screen

Re: Changing the login page

Posted: Tue Sep 17, 2019 2:13 am
by eventoteam
@amosbatto: Thankyou so much, it has been removed using the link you have provided.

Re: Changing the login page

Posted: Fri Sep 20, 2019 8:42 am
by eventoteam
Amosbatto: I was doing the same steps for redirecting my older version PM. but my URL seems quite strange. "login.html" appearing two times

Re: Changing the login page

Posted: Fri Sep 20, 2019 11:26 am
by amosbatto
What version of ProcessMaker?

Post the contents of your workflow/public_html/index.html and pmos.conf files

Re: Changing the login page

Posted: Fri Sep 20, 2019 11:34 am
by eventoteam
amosbatto wrote: Fri Sep 20, 2019 11:26 am What version of ProcessMaker?

Post the contents of your workflow/public_html/index.html and pmos.conf files
My Company is using 1.245 version. Index files is not attaching so i am adding the code in post.
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  <title>Tracker</title>
  <meta http-equiv="PRAGMA" content="NO-CACHE">
  <meta http-equiv="CACHE-CONTROL" content="NO-STORE">
  <meta http-equiv="REFRESH" content="0;URL=/sysworkflow/en/green/login/login">
  <link rel="icon" href="images/favicon.ico" type="image/x-icon">
  <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
  <script type="text/javascript" src="browser_message.js" language="javascript">
  </script>
  <link href="masterstylesheet.css" rel="stylesheet" type="text/css">
</head>

<body onLoad="checkBrowser();">
<p></p>

<table width="90%" border="0" align="center" cellpadding="3" cellspacing="5" class="StylishSection">
  <tbody>
    <tr>
      <td width="14%" height="62"></td>
      <td width="76%" align="center"><img src="images/Logo.png"
        alt=" logo" width="360" height="65"
        title="Powered by Tracker Team"></td>
      <td width="10%"></td>
    </tr>
    <tr>
      <td height="66"></td>
      <td align="center" valign="middle" class="style1">Redirecting to Login screen in <span id="theTime" class="style1"></span> seconds. </td>
      <td></td>
    </tr>
    <tr>
      <td colspan="3" align="center">For the impatient ones, <a
        href="/sysworkflow/en/green/login/login.html">click here to go to
        Tracker NOW.</a></td>
    </tr>
    <tr>
      <td colspan="3" align="left" valign="top"><p class="notificationsHeaders">interested in Latest news ? </p>
        <blockquote>
         Click here to see  <a href="news_archive.php">news archive</a>. 
        </blockquote>
        <p class="notificationsHeaders">Interested in FAQs </p>
        <blockquote>
          <p>Click here to see <a href="tracker_faqs.php"> Tracker FAQs </a>.        <br>
          </p>
          <p>&nbsp; </p>
        </blockquote></td>
    </tr>
  </tbody>
</table>
</body>
</html>

Re: Changing the login page

Posted: Fri Sep 20, 2019 1:25 pm
by amosbatto
In your pmos.conf, try changing from:
Redirect /sys/en/green/login/login http://tracker/sysworkflow/en/green/login/login
To:
RewriteRule ^sys/(.*)$ /sysworkflow/$1 [R=301,NC,L]

Does that work?

Re: Changing the login page

Posted: Sun Sep 22, 2019 4:03 am
by eventoteam
amosbatto wrote: Fri Sep 20, 2019 1:25 pm In your pmos.conf, try changing from:
Redirect /sys/en/green/login/login http://tracker/sysworkflow/en/green/login/login
To:
RewriteRule ^sys/(.*)$ /sysworkflow/$1 [R=301,NC,L]

Does that work?
Thankyou so much once again Amosbatto. It worked!