Forum Moderators: phranque

Message Too Old, No Replies

how to mask URL in apache web server

how to mask URL in apache web server

         

manjunatha bh

6:46 pm on Feb 11, 2009 (gmt 0)

10+ Year Member



HI
I have apache web server hosted on one linux machine.
i.e [hostname...]

If I login and go to other pages it will show the URL : [hostname...]

I want URL to be [hostname...] even when I switch Pages.

i.e I need to mask the URL to the people who are accessing. How Can I achieve this? Request your help.

Regards
Manjunatha

jdMorgan

9:16 pm on Feb 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is possible by using HTML <frames>, but this is a really good way to destroy your search engine rankings.

Jim

manjunatha bh

2:46 am on Feb 12, 2009 (gmt 0)

10+ Year Member



HI Jim

Can we achieve this using apache rewrite rules?

Regards
Manjunatha

jdMorgan

3:00 am on Feb 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No. The links on your pages, and not the server's URL-to-filename translation modules, determine the URL.

For security reasons and many other reasons, the URL shown to the browser user is the "real" URL.

In case it wasn't clear, any attempt to "hide" inner pages using any method available ( such as HTML <frame>s ), will result in very poor performance in search ranking and horrible site usability. I strongly suggest that you throw away this whole idea, and come up with some other approach that meets your needs. Among legitimate and viable Web sites, this is simply not done.

If you are having some issue with a script or service that creates excessively-long URLs, then that is not a serve problem, and should be discussed with the script or service provider.

If you can modify the script that outputs this long URL, then you can likely change it to output shorter and friendlier URLs. If so, then mod_rewrite can detect requests for those short/friendly URLs, and rewrite those requests back to the log/unfriendly format needed to invoke the script and produce the next page. But again note that the links on the pages must be changed first, by editing either the static HTML pages, or the script that dynamically produces those HTML pages.

Jim

manjunatha bh

4:23 am on Feb 12, 2009 (gmt 0)

10+ Year Member



Hi Jim
Thanks for your feedback.
Regards
Manjunatha