Forum Moderators: open

Message Too Old, No Replies

Hiding the URL in address bar?

Can anyone can help me?

         

dims animations

11:09 am on Mar 13, 2006 (gmt 0)

10+ Year Member



I'm still newb :( so, can anyone help me to hide my url. just like this -->
My actual url:

http://www.example.com/index.php?id=myid

I just want to my address bar say this

http://www.example.com/index.php

does any "master" can help me? thanks a lot... :)

[edited by: encyclo at 1:28 am (utc) on Mar. 15, 2006]
[edit reason] switched to example.com [/edit]

moltar

12:24 pm on Mar 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do it using frames.

dims animations

11:39 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



hmm.. yes. using frame. Is there anything else such php it self that can make my url don't show? or some function maybe?

kaled

1:18 am on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why do you want to disguise your urls? In general, it's a really bad idea.

Kaled.

encyclo

1:35 am on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As moltar has said, you can use a 100% frame to mask your URL in the address bar, but it is a very bad idea for several reasons. You should always has a separate URL for each page so that they can be indexed by search engines and bookmarked by users.

If you don't like using dynamic URLs with parameters (as in your example), then if you are on a server running Apache with mod_rewrite, you can change your URLs to a more user-friendly format. For example:

http://www.example.com/index.php?id=myid

Can become something like:

http://www.example.com/widgets/blue-widgets.html

If you stick with dynamic URLs, it is best never to use

id=
as it could be misinterpreted as a session ID by a search engine spider, which may decline to index the page.

dims animations

12:50 am on Mar 16, 2006 (gmt 0)

10+ Year Member



sorry kaled, I just want to know more about "securing web-site".LOL.
Anyway, what shuld i do to make my url more "user-friendly" with this "mod_rewrite" -- thing.
Maybe I'm too lazy ^_^ but, is there any forum that I can know about this "thing"?
This --> "id" just for sample purpose only :), But thank's anyway.

NB : sorry, cause i'm trully newbie :(