Change customer and agent URL

Moderator: crythias

Locked
intrepidfroot
Znuny newbie
Posts: 16
Joined: 22 Mar 2012, 10:21
Znuny Version: 31000
Real Name: Matthew Smith

Change customer and agent URL

Post by intrepidfroot »

Hi,

How do I go about changing/redirecting the URL for customer.pl and index.pl. I've set up two aliases in DNS pointing to the server but I have no idea how to configure apache.

I want http://servicedesk to point to customer.pl and
http://OTRS to point to index.pl

Any assistance would be great
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Change customer and agent URL

Post by Wolfgangf »

apaches rewrite module would be your friend
here is an example

Code: Select all

order deny,allow
Allow from all
Options +FollowSymlinks
<IfModule mod_rewrite.c>
        RewriteEngine on
        # Customer Login
        RewriteCond %{REQUEST_URI} ^.*/servicedesk/?$
        RewriteRule ^.*$ http://your.host.name/otrs/customer.pl [R]
        # Agent Login
        RewriteCond %{REQUEST_URI} ^.*/OTRS/?$
        RewriteRule ^.*$ http://your.host.name/otrs/otrs/index.pl [R]
</IfModule>
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
fbz
Znuny newbie
Posts: 4
Joined: 04 May 2012, 12:44
Znuny Version: 3.1.4

Re: Change customer and agent URL

Post by fbz »

Where to place this ?
Locked