English 中文(简体)
http:// localhost/mydirector/ - 重复我方言,避免当地东道方出现404起错误
原标题:http://localhost/mydirector/ - echo mydirectory and avoid 404 error on localhost
  • 时间:2010-05-03 10:34:46
  •  标签:
  • php
  • apache

我有URL http:// localhost/mydirector/。 我要重复我的直言,没有404个错误。 我的直言并非目录,而是作为用户名称。 我正在使用Windows/apache/MySQL,PHP。 所有这些都发生在当地幽灵或127.0.0.1。

Thanks Jean

问题回答

如果 mo弄_子,你想要什么,你是否调查了 mo子。

rel=“nofollow noreferer”> http://http://d.apache.org/docs/2.0/mod/mod_userdir.html

你们需要改写,以便在国内将URL改写到另一个URL。

例如:

http://localhost/mydirector/

:

http://localhost/index.php?z=mydirector

然后,你可以把指数.php改为并反映z参数值。

There is a lot of information on the net about using mod_rewrite to do this. 例如: http://articles.sitepoint.com/article/guide-url-rewriting





相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签