Hello all. I know this isn't exactly the OTRS issue, but thought this would be the best place to get some help.
I would like that agents and customers don't have to type the full url, i.e. when they type https: //www.testcompany.com/otrs/ they are automatically redirected to https: //www.testcompany.com/otrs/index.pl. Similarly, I would like customers to be redirected to customer.pl when they enter https: //www.testcompany.com.
My setup is: OTRS 3.3.9, Centos 6.5, Apache 2.2.15 and I'm using https protocol.
For the customer part I was able to achieve partial success by changing document root and directory in httpd.conf to "/opt/otrs/var/httpd/htdocs". But this only works with http and not https. So I'm kinda stuck.
I'd thankful for any help.
redirect to index.pl and customer.pl
Moderator: crythias
redirect to index.pl and customer.pl
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
-
- Znuny newbie
- Posts: 55
- Joined: 10 Feb 2015, 15:30
- Znuny Version: 4.0.6
- Real Name: Linwood Ferguson
- Company: LE Ferguson, LLC
Re: redirect to index.pl and customer.pl
I just replaced index.html in the default location for the default web site to be this:
Is there a better or more appropriate way?
The agent web site already redirects, doesn't it? At least mind did, and I do not recall changing it (you need the trailing / but you showed that).
Mine are working for both http and https (or more precisely using rewrite mod http is rewriting to https as well, but if the user types either in, they end up in the right place). If I changed anything more than the above (and rewrite for http->https) I can't recall.
note I didn't find a good solution to the /otrs/ without the training slash, I fiddled with it a bit and gave up, I would really like that to work as well but without arcane rewrites, but didn't find a way with changing default directory index.
Code: Select all
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=/otrs/customer.pl">
</head>
<body>Redirecting...</body>
</html>
The agent web site already redirects, doesn't it? At least mind did, and I do not recall changing it (you need the trailing / but you showed that).
Mine are working for both http and https (or more precisely using rewrite mod http is rewriting to https as well, but if the user types either in, they end up in the right place). If I changed anything more than the above (and rewrite for http->https) I can't recall.
note I didn't find a good solution to the /otrs/ without the training slash, I fiddled with it a bit and gave up, I would really like that to work as well but without arcane rewrites, but didn't find a way with changing default directory index.
Linwood Ferguson
OTRS 4.0 patch 6, ubuntu 14.04 on HyperV, MySql
OTRS 4.0 patch 6, ubuntu 14.04 on HyperV, MySql
Re: redirect to index.pl and customer.pl
Hi,
I do the redirect with html, the same as you did. Customers are redirected directly to customer.pl and the agents use a bookmark to index.pl
I think for all other things you need apache redirects and apache configuration with vhost or something to get the correct redirects.
Cheers
Flo
I do the redirect with html, the same as you did. Customers are redirected directly to customer.pl and the agents use a bookmark to index.pl
I think for all other things you need apache redirects and apache configuration with vhost or something to get the correct redirects.
Cheers
Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
-
- Znuny newbie
- Posts: 21
- Joined: 25 Feb 2015, 21:51
- Znuny Version: 4.0.6
- Real Name: Tamara
- Location: Bonn, Germany
Re: redirect to index.pl and customer.pl
Do a .htaccess-Redirect.
Simply create a .htaccess in your webroot with following content:
First row is for customer-login, they redirectly direct with your domain, e.g. domain.com
Second and third row are for agent-login, accessing with domain.com/agent or domain.com/agent/
Simply create a .htaccess in your webroot with following content:
Code: Select all
Redirect /index.html /otrs/customer.pl
Redirect /agent/index.html /otrs/index.pl
Redirect /agent /otrs/index.pl
Second and third row are for agent-login, accessing with domain.com/agent or domain.com/agent/
Re: redirect to index.pl and customer.pl
by webroot you mean document root right? So in my case /opt/otrs/var/httpd/htdocs. Do I get it right? It doesn't seem to work for me, despite an apache restart and clearing browser cache
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
-
- Znuny newbie
- Posts: 55
- Joined: 10 Feb 2015, 15:30
- Znuny Version: 4.0.6
- Real Name: Linwood Ferguson
- Company: LE Ferguson, LLC
Re: redirect to index.pl and customer.pl
I'm not the person who posted that, but I think the intent there was in (for example) /var/www/html or whereever the default web is set on your particular system. If doing it with a redirect (as opposed to moving the web root itself), you need the redirect (whatever flavor you use) whereever it goes now by default, to send it elsewhere.aph wrote:by webroot you mean document root right? So in my case /opt/otrs/var/httpd/htdocs. Do I get it right? It doesn't seem to work for me, despite an apache restart and clearing browser cache
Linwood Ferguson
OTRS 4.0 patch 6, ubuntu 14.04 on HyperV, MySql
OTRS 4.0 patch 6, ubuntu 14.04 on HyperV, MySql
-
- Znuny newbie
- Posts: 47
- Joined: 02 Jan 2014, 22:02
- Znuny Version: 3.3.3
- Real Name: Raj
- Company: Business Park Solutions Ltd
Re: redirect to index.pl and customer.pl
I have installed otrs 5 on centos7
If i go to /var/www.htlm/ and create the a .htaccess nothing happens.
i have restarted apache and the server.
Anyone could assist please?
Regards,
Raj
If i go to /var/www.htlm/ and create the a .htaccess nothing happens.
i have restarted apache and the server.
Anyone could assist please?
Regards,
Raj