English 中文(简体)
Hide the file name in the URL
原标题:Hide the file name in the URL
  • 时间:2011-09-08 05:06:59
  •  标签:
  • html

what is the best method of hiding the file name in the URL from a developers side (who has no control over the server), for example if the site is www.123.co.za/contact.htm - i wan the user to only see www.123.co.za. an example of such can be seen here http://www.groupon.co.za

ways i know of is using one page and dynamically loading page content using ajax the other is frames

(诸如变式-重饰式i器作为一机可进入或控制服务器的服务器)

问题回答

They are using index pages. That means they have a page such as index.html, index.php, or index.aspx, etc. All you have to do is create a directory (for example, contact ) and put a file named index.html within that directory. Then you can view www.123.co.za/contact/index.html as www.123.co.za/contact. Note that your allowable index page names may vary. If index.* doesn t work for you, contact the host and ask (sometimes it s default.*).

这种方法的捕获量是,现在可在以下三部分查阅你的网页:www.123.co.za/contact, www.123.co.za/contact/,www.123.co.za/contact/index.html。 这可能会伤害你在搜索引擎中的现场,因为你可能因“复制”内容而受到惩罚。 你可以用 mo调来解决这个问题,但看到你能够利用,你可以阻止上述设想。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签