Forum Moderators: phranque

Message Too Old, No Replies

hide server URL and show static URL

in apache server

         

apache45

11:36 am on Jan 23, 2012 (gmt 0)

10+ Year Member



Hi,

I want to work on a site where a unique URL should be available.
Background:
If a URL is accessible, it should point or redirect to server URL. But in Browser, it should show the URL which is accessed by end user. It should not show server URL or server details.

Directly speaking :
URL of server should be hidden when you re-direct URL.

Can any one help here.

apa45
----

g1smd

1:05 pm on Jan 23, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need an internal rewrite using a RewriteRule.

As this question comes up every few days there are literally thousands of code examples in earlier threads.

lucy24

5:45 pm on Jan 23, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As this question comes up every few days there are literally thousands of code examples in earlier threads.

I have occasionally said the same thing myself but I decided I'd better check.

Forums search for rewrite + redirect = 10,600 hits

search for RewriteRule + redirect = 108,000 hits (Redirect by itself = 107,000)

rewrite alone = 52,800 hits

mod_rewrite = only 21,900

I am not absolutely sure I understand google's math, but "literally thousands" does seem to be literally correct ;)

But seriously! If you're asking about things that live on different servers-- or different areas of the same server-- you're in Proxy territory. That may reduce your results by another few thousand. It's still the same type of Rule. You just have to compose it a little more carefully and use an extra flag.