Click here to Skip to main content
13,090,930 members (43,277 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I was wondering if it is possible to hide your URL from visitors on your site.

For example:

If my homepage URL is

How do I change that to for instance

I do not want to show the /pages/home.php for reasons like:

I might have a file download on the page and if a user can figure out that these files are for instance in /files/ then he can download it like that. Why is this n problem? Lets say the user needs to pay for the file or he needs to subscribe.

Long, useless story short. How do I do this?

Thanks in advance,
Posted 8-May-13 3:35am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Probably you are looking for the technique called URL rewriting:[^].

Please see:[^].

Christopher Smit 8-May-13 9:53am
More closely to what I am looking for would be something like a cloak. There should be NOTHING after the

Just that.. Is that possible? Thank you for the tip on rewriting though :)
Yes, but NOTHING means that only one URI is possible. To make at least one more URI, you would need to wrote at least SOMETHING after the last '/'... :-)
Christopher Smit 8-May-13 10:15am
I found a way to do it by simple using <iframe> tag. But that is not what I want to do.. So I will go with the Rewrite instead.. Thanks for the help :)
Of course this is not it. Hope you can get good results with URI rewriting.
Will you accept my answer formally then (green button)?
Christopher Smit 8-May-13 10:20am
I have :) Enjoy your day

I will try to. :-) Thank you, you too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 8 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100