Forum Moderators: phranque
The HOST_NAME should be just that. Lose the /* from the end.
If this code goes in .htaccess lose the leading slash from the pattern.
You have a 302 redirect, I assume you need 301.
Why are you redirecting requests for an external web-based domain name to a file inside the viewers own machine?
I do not want to confuse you sir..
Just I want a simple redirect from:
[localhost:1080...]
(where if this particular URL not accessible) then it should be redirected to our custom page: [localhost:1080...] using {HTTP_HOST}
Thanking you..
Actually we are trying to create a new webinstance and which Listen on PORT 1080. And which should verify the above external URL and If the URL is not available..then our custom page will show the friendly message.
At present testing on localserver. If works for localhost then we try for the above URL.
The default 8080 port is Listening. But we tried to create another virtualhost 1080. which should perform all the above tasks..
The redirect is required for all the ports.