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...
Also I'd like to not show the path of the website in the URLFor this you will need mod_proxy. For URL rewriting you will need mod_rewrite. Then, showing us somethings you have tried and explain what is not working would be great, as we are not really here to do the full job for you, but here to provide some guidance... – krisFR Jun 01 '15 at 20:39