请教一个路径问题

浏览:384 发布日期:2015/03/30 分类:求助交流
把一个tp的项目,放到wamp下运行,首页显示出来了,然后导航菜单链接不对,点击后,地址缺少1个 项目名称,类似http://localhost/Novice这样,应该为 http://localhost/项目名/Novice,第一次搞THINKPHP,请问怎么改啊?LoadModule rewrite_module modules/mod_rewrite.so,已经打开,
DocumentRoot "d:/wamp/www"
<Directory "d:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymlinks SymlinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#

Options Indexes FollowSymlinks ExecCGI Includes
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
Allow from all

</Directory>这是我的配置,
.htaccess文件里是这样写的,

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
最佳答案
评论() 相关
后面还有条评论,点击查看>>