geroid Posted October 10, 2009 Share Posted October 10, 2009 Hi I was wondering if anyone knows about something I noticed on websites. I have just uploaded a website to the host that I designed for an organisation. If you hover over any link, the full address appears on the bottom left of the screen. This is normal. Like: http://www.domainname.com/index.php However I have noticed that on other site they seem to be able to hide the page name somehow so that whatever link you hover over all you get is e.g.: http://www.google.ie/services/ or http://office.microsoft.com/en-gb/products/ As you can see there is no html or php page name. I would like to do this as it seems to me a better security feature. Any ideas how it's' done? Thanks Quote Link to comment Share on other sites More sharing options...
.josh Posted October 10, 2009 Share Posted October 10, 2009 first off this isn't a php question 2nd, how is that any more secure? 3rd, usually servers are setup to automatically look for index.html or index.php or index.whatever so when you do http://www.somesite.com/ in your href="..." it should automatically look for it. Quote Link to comment Share on other sites More sharing options...
haku Posted October 10, 2009 Share Posted October 10, 2009 It's very like done with apache mod rewrite. This allows for URLs to be changed. So when a user enters a URL following a certain pattern, the server produces the page that matches that pattern, even though the URL typed in wasn't for that page. Or it could be as the above poster says. Quote Link to comment Share on other sites More sharing options...
.josh Posted October 10, 2009 Share Posted October 10, 2009 he's talking about the url that appears at the bottom left of the browser when you hover over the link. That's got nothin' to do with mod rewrite. Quote Link to comment Share on other sites More sharing options...
haku Posted October 11, 2009 Share Posted October 11, 2009 Re-read his post - he's not talking about hiding the whole link, just about 'hiding' the page name, which I suspect is just the url rewrite on whatever site he's talking about. Or it may be as the poster before me mentioned, it's just a matter of the 'index.html' being automatically appended based on server settings. Quote Link to comment Share on other sites More sharing options...
.josh Posted October 11, 2009 Share Posted October 11, 2009 dude look at the screenshot I uploaded. I'm pretty sure that's what he's talking about. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
haku Posted October 12, 2009 Share Posted October 12, 2009 I know that's what he's referring to - I got it from his original post. But look what he wrote: However I have noticed that on other site they seem to be able to hide the page name somehow so that whatever link you hover over all you get is e.g.: http://www.google.ie/services/ or http://office.microsoft.com/en-gb/products/ As you can see there is no html or php page name. He just wants to hide the actual file name. He is describing it strangely, by speaking of hovering over the link and seeing the link destination in the bottom of the browser, but what he is speaking of keeping the whole link, minus the page name. Which is done with URL rewrite. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.