I have a website running on Apache.
I would like to create a forward such that if I access http://helpdesk.example.com/otrs/anyname
(except customer.pl) this redirects to http://helpdesk.example.com/otrs/customer.pl
Also I'd like to not show the path of the website in the URL:
helpdesk.example.com/otrs/customer.pl
displayed as helpdesk.example.com
.
Thank you for answers..
Some is wrong...
in var/www/ is index.html
<meta http-equiv="refresh" content="0;url=http://helpdesk.example.com/otrs/customer.pl">
and at this moment is .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^/(.*)$ ./customer.pl?query=$1
enter code here
It isn't working...