directoryindex

    0热度

    1回答

    我知道,你可以在.htaccess使用DirectoryIndex example.html,但我需要的是改变指数为特定的目录,比如: DirectoryIndex /ex/index_file.html 或 DirectoryIndex /ex2/index_file2.html 有没有一种方式,你可以做到这一点?我不想重命名文件,我试图做这个index.html,因为这不是它是什么。你

    3热度

    1回答

    我在同一个目录中安装了两个CMS。其中一个CMS允许将index.php文件重命名为index2.php,而另一个则不然。理想情况下,我想成立一​​个条件规则中的.htaccess文件: 用途的index.php作为默认的DirectoryIndex 如果有那么一个404错误设置的DirectoryIndex以index2.php 有谁知道这/如何可能?

    0热度

    2回答

    我有一个子域名(如subdomain.domain.com)设置在我的网络服务器上。主站点位于'httpdocs'中,子域的文件位于与'httpdocs'相同级别的文件夹'subdomain'中。 'httpdocs'中没有.htaccess文件。 我在与文件夹 '子域' .htaccess文件: 的DirectoryIndex index.html的index.htm的index.php文件 我

    1热度

    2回答

    嗨,我做一个CMS的网站,我需要重写我的网址 目前我的网址是http://www.example.com/index.php?link=pages&cmsid=2&cmsLink=Carpet 它指的cmsLink 我想我的网址像http://www.example.com/Carpet 我使用下面的代码 Options +FollowSymLinks Options +Indexes Rew

    0热度

    1回答

    DirectoryIndex index.html index.htm index.php 这应该使用HTML,然后PHP的目录索引,它的确如此。但是当我手动在url中输入index.php时,我被重定向到index.html。这可以避免吗? 如果我删除.htaccess文件index.php成为默认值,所以我猜服务器正在阅读说明,但没有按照我的预期遵守它们。

    0热度

    2回答

    我想将用户重定向到网站的/index/区域(如果他们没有我的IP地址)。 我该怎么做? 谢谢。

    0热度

    1回答

    在我工作的网站上将有大约7个不同的目录。我在我的.htaccess中使用DirectoryIndex指向index.php,因此您可以访问site.com/menu/或site.com/menu/index.php并获取其他6个目录的相同内容等。 我知道重复的内容应该是坏的。这会导致任何搜索引擎优化问题,或将搜索引擎足够聪明,以了解它是一个DirectoryIndex并只索引结果一次?

    1热度

    1回答

    我安装Wordpress并得到它找不到index.php的问题。当然,如果我明确输入它就没问题。问题在于DirectoryIndex不正确。我看在mods-enabled/dir.conf中,它说: <IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.h

    4热度

    1回答

    我的Apache Web服务器突然停止自动提供index.php文件。它显示direcotry列表,而不是。我尝试过帮助,但没有运气。 我htttpd.conf文件包括 <IfModule module_php5> AddType application/x-httpd-php .php </IfMOdule> 和 DirectoryIndex index.php index.ht

    0热度

    1回答

    这是我的htaccess文件的Drupal集的当前重写规则: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteCond %{REQUEST_URI} !=/index.html