htaccess文件没有重定向到godady索引页 [英] htaccess file didn't redirect to index page on godady

查看:112
本文介绍了htaccess文件没有重定向到godady索引页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个htaccess文件

i have this htaccess file

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

它工作正常,在本地主机和一台服务器上,但是当我把它放在godady 每一件事情是好的,除了指数它给了我404!

it works fine on local host and on a server but when i put it on godady every thing is fine except for index it gives me 404 !

例子     http://www.mydomain.com/books 这是确定
    http://www.mydomain.com/index 这是没有确定

examples http://www.mydomain.com/books this is ok
http://www.mydomain.com/index this is not ok

推荐答案

补充一点:

Options +FollowSymLinks -MultiViews -Indexes

在最高层,并给它一个尝试。

at the very top and give it a try.

这篇关于htaccess文件没有重定向到godady索引页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆